diff --git a/core/lib/serde/drakdoo.py b/core/lib/serde/drakdoo.py index 5571c76..8fa6d28 100644 --- a/core/lib/serde/drakdoo.py +++ b/core/lib/serde/drakdoo.py @@ -9,8 +9,8 @@ class Market(Model): class Timestamp(Model): - sent = fields.DateTime() - trade = fields.DateTime() + sent = fields.Int() + trade = fields.Int() class BaseDrakdoo(Model): diff --git a/core/migrations/0006_remove_callback_market_alter_callback_timestamp_sent_and_more.py b/core/migrations/0006_remove_callback_market_alter_callback_timestamp_sent_and_more.py new file mode 100644 index 0000000..352b2b5 --- /dev/null +++ b/core/migrations/0006_remove_callback_market_alter_callback_timestamp_sent_and_more.py @@ -0,0 +1,27 @@ +# Generated by Django 4.1.2 on 2022-10-16 13:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0005_remove_callback_data_callback_market_and_more'), + ] + + operations = [ + migrations.RemoveField( + model_name='callback', + name='market', + ), + migrations.AlterField( + model_name='callback', + name='timestamp_sent', + field=models.BigIntegerField(blank=True, null=True), + ), + migrations.AlterField( + model_name='callback', + name='timestamp_trade', + field=models.BigIntegerField(blank=True, null=True), + ), + ] diff --git a/core/models.py b/core/models.py index 55c3f1b..0fafea4 100644 --- a/core/models.py +++ b/core/models.py @@ -86,9 +86,8 @@ class Callback(models.Model): title = models.CharField(max_length=1024, null=True, blank=True) message = models.CharField(max_length=1024, null=True, blank=True) period = models.CharField(max_length=255, null=True, blank=True) - market = models.CharField(max_length=255, null=True, blank=True) - timestamp_sent = models.DateTimeField(null=True, blank=True) - timestamp_trade = models.DateTimeField(null=True, blank=True) + timestamp_sent = models.BigIntegerField(null=True, blank=True) + timestamp_trade = models.BigIntegerField(null=True, blank=True) market_exchange = models.CharField(max_length=255, null=True, blank=True) market_item = models.CharField(max_length=255, null=True, blank=True) market_currency = models.CharField(max_length=255, null=True, blank=True) diff --git a/core/templates/partials/close-widget.html b/core/templates/partials/close-widget.html index 650b481..0c66e85 100644 --- a/core/templates/partials/close-widget.html +++ b/core/templates/partials/close-widget.html @@ -1,3 +1,3 @@ \ No newline at end of file + class="fa-solid fa-xmark has-text-grey-light float-right" + onclick='grid.removeWidget("widget-{{ unique }}");'> \ No newline at end of file diff --git a/core/templates/partials/close-window.html b/core/templates/partials/close-window.html index f15a41c..894974c 100644 --- a/core/templates/partials/close-window.html +++ b/core/templates/partials/close-window.html @@ -1,3 +1,3 @@ \ No newline at end of file + class="fa-solid fa-xmark has-text-grey-light float-right" + data-script="on click remove the closest