Skip to content

Commit

Permalink
fix: Fix bug in requirements and seeder
Browse files Browse the repository at this point in the history
  • Loading branch information
drorganvidez committed Jul 12, 2024
1 parent d886588 commit c3dd1c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions app/modules/dataset/seeders.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import os
import shutil
from app.modules.auth.models import User
from app.modules.featuremodel.models import FMMetaData, FeatureModel
from app.modules.hubfile.models import Hubfile
from core.seeders.BaseSeeder import BaseSeeder
from app.modules.dataset.models import (
DataSet,
DSMetaData,
PublicationType,
DSMetrics,
FeatureModel,
FMMetaData,
Author)
from datetime import datetime
from datetime import datetime, timezone
from dotenv import load_dotenv


Expand Down Expand Up @@ -62,7 +61,7 @@ def run(self):
DataSet(
user_id=user1.id if i % 2 == 0 else user2.id,
ds_meta_data_id=seeded_ds_meta_data[i].id,
created_at=datetime.utcnow()
created_at=datetime.now(timezone.utc)
) for i in range(4)
]
seeded_datasets = self.seed(datasets)
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ networkx==3.3
outcome==1.3.0.post0
packaging==24.1
pluggy==1.5.0
ply==3.11
ply==3.10
psutil==6.0.0
pyasn1==0.6.0
pycodestyle==2.12.0
Expand Down Expand Up @@ -98,4 +98,3 @@ WTForms==3.1.2
zope.event==5.0
zope.interface==6.4.post2
zstandard==0.22.0

0 comments on commit c3dd1c5

Please sign in to comment.