Skip to content

Commit

Permalink
fix: cron_config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Mehr committed Mar 22, 2024
1 parent 30312ab commit 201a1c3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions datastore/migrations/0009_alter_folder_cron_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.9 on 2024-03-22 01:50

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("datastore", "0008_folder_sync_interval"),
]

operations = [
migrations.AlterField(
model_name="folder",
name="cron_config",
field=models.JSONField(blank=True, default=dict, null=True),
),
]
2 changes: 1 addition & 1 deletion datastore/models/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Folder(BaseModel):

# this needs to be updated regularly
last_sync = models.DateTimeField(null=True, blank=True)
cron_config = models.JSONField(default=dict)
cron_config = models.JSONField(default=dict, null=True, blank=True)
sync_interval = models.IntegerField(default=5)

def __str__(self):
Expand Down

0 comments on commit 201a1c3

Please sign in to comment.