reduce userstats cron defaults, fix reference error

This commit is contained in:
Andreas Köpf
2023-01-28 19:10:03 +01:00
parent ab4dce3f60
commit 54503b7e1b
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -179,9 +179,9 @@ class Settings(BaseSettings):
tree_manager: Optional[TreeManagerConfiguration] = TreeManagerConfiguration()
USER_STATS_INTERVAL_DAY: int = 15 # minutes
USER_STATS_INTERVAL_WEEK: int = 60 # minutes
USER_STATS_INTERVAL_MONTH: int = 120 # minutes
USER_STATS_INTERVAL_DAY: int = 5 # minutes
USER_STATS_INTERVAL_WEEK: int = 15 # minutes
USER_STATS_INTERVAL_MONTH: int = 60 # minutes
USER_STATS_INTERVAL_TOTAL: int = 240 # minutes
@validator(
@@ -481,6 +481,7 @@ class PromptRepository:
task_id=task.id if task else None,
)
message: Message = None
if message_id:
if not task:
if text_labels.is_report is True: