This commit is contained in:
2025-03-14 03:20:53 +01:00
parent bab5571428
commit cb92b0c84f
2 changed files with 2 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ class Command(BaseCommand):
for name, task in self.task_schedule.items():
if name not in self.histories or time.time() - self.histories[name] > task["schedule"]:
self.call_func(name)
time.sleep(0.5)
time.sleep(1)
def exit_gracefully(self, signum, frame):
self.stdout.write(self.style.SUCCESS("exit"))

View File

@@ -8,6 +8,7 @@ from .models import User, FriendRequest, Invitation
@admin.register(User)
class UserAdmin(BaseUserAdmin):
ordering = ["pk"]
# add_form = UserCreationForm
form = UserChangeForm
fieldsets = BaseUserAdmin.fieldsets + (