Skip to content

Commit

Permalink
fix: seeder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Mehr committed Mar 17, 2024
1 parent 0efe613 commit 74ee922
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main/management/commands/seeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,10 @@ def handle(self, *args, **kwargs):
user = UACUser.objects.get(username=LOGIN_USERNAME)
FolderPermission.objects.create(user=user, folder=folder)
print("Gave user permission")

print("Seeding completed successfully")
print(f"Login with username: {LOGIN_USERNAME} and password: {LOGIN_PASSWORD}")
print(f"Folder which has been synced is https://drive.google.com/drive/folders/{GDRIVE_TEST_FOLDER_ID}")

except IntegrityError:
self.stdout.write(self.style.ERROR("An IntegrityError occurred."))

0 comments on commit 74ee922

Please sign in to comment.