mirror of
https://github.com/alexgetmancom/miband-bot.git
synced 2026-09-05 18:16:18 +03:00
feat: download 30 days of data on initial login
This commit is contained in:
@@ -1472,7 +1472,9 @@ async def run_initial_sync_after_login(update: Update, context: ContextTypes.DEF
|
|||||||
return
|
return
|
||||||
|
|
||||||
async with SYNC_LOCK:
|
async with SYNC_LOCK:
|
||||||
result = await run_sync(get_current_user_id(), SETTINGS)
|
import dataclasses
|
||||||
|
initial_settings = dataclasses.replace(SETTINGS, query_duration=30)
|
||||||
|
result = await run_sync(get_current_user_id(), initial_settings)
|
||||||
|
|
||||||
if result.success:
|
if result.success:
|
||||||
await show_main_menu(update, context)
|
await show_main_menu(update, context)
|
||||||
|
|||||||
Reference in New Issue
Block a user