Skip to content

Commit

Permalink
Merge pull request #2191 from nicomiguelino/fix-2190
Browse files Browse the repository at this point in the history
fix: error: "'<' not supported between instances of 'str' and 'datetime.datetime'"
  • Loading branch information
nicomiguelino authored Jan 3, 2025
2 parents 507dd1e + dfb6057 commit a8d4069
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/views/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def post(self, request):

active_asset_ids = get_active_asset_ids()
asset = Asset.objects.create(**serializer.data)
asset.refresh_from_db()

if asset.is_active():
active_asset_ids.insert(asset.play_order, asset.asset_id)
Expand Down

0 comments on commit a8d4069

Please sign in to comment.