matplobbot-shared 0.1.34__py3-none-any.whl → 0.1.35__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of matplobbot-shared might be problematic. Click here for more details.
- {matplobbot_shared-0.1.34.dist-info → matplobbot_shared-0.1.35.dist-info}/METADATA +1 -1
- {matplobbot_shared-0.1.34.dist-info → matplobbot_shared-0.1.35.dist-info}/RECORD +5 -5
- shared_lib/database.py +5 -0
- {matplobbot_shared-0.1.34.dist-info → matplobbot_shared-0.1.35.dist-info}/WHEEL +0 -0
- {matplobbot_shared-0.1.34.dist-info → matplobbot_shared-0.1.35.dist-info}/top_level.txt +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
shared_lib/__init__.py,sha256=Wxuw1wbvCOsKqs6WfIQ05cx_vndhPs6rH2krMatFRqA,45
|
|
2
|
-
shared_lib/database.py,sha256=
|
|
2
|
+
shared_lib/database.py,sha256=1vJYxybYKnQYfP-Eir4-EK02AHtEmUfiVz-gsxm1fE4,22019
|
|
3
3
|
shared_lib/i18n.py,sha256=VBWQWVF-k_HDiidYo_RUPyUCM7oL897z5hOw9jvOoYY,1762
|
|
4
4
|
shared_lib/redis_client.py,sha256=j7AKwrSWhtEHeV25Sy0JiWLIx2EI3hFEx7suoOwxRU8,2234
|
|
5
5
|
shared_lib/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
shared_lib/services/schedule_service.py,sha256=GcZQk8l-iVxm2HhbokHQpBgI4-M0K6CtJE1VljfhgZU,4494
|
|
7
7
|
shared_lib/services/university_api.py,sha256=Ui-zjfKOHCCf2Imh8CNtVOWegwuep7IB8gO9IKNUrrE,1898
|
|
8
|
-
matplobbot_shared-0.1.
|
|
9
|
-
matplobbot_shared-0.1.
|
|
10
|
-
matplobbot_shared-0.1.
|
|
11
|
-
matplobbot_shared-0.1.
|
|
8
|
+
matplobbot_shared-0.1.35.dist-info/METADATA,sha256=45SJabegi3aZqiGTICtOkRqSl6hw43yZIpGy0w72XOo,416
|
|
9
|
+
matplobbot_shared-0.1.35.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
matplobbot_shared-0.1.35.dist-info/top_level.txt,sha256=L8mrC50YWCe19jmh_zrUZFvXSkhsnES5K6y027G1838,11
|
|
11
|
+
matplobbot_shared-0.1.35.dist-info/RECORD,,
|
shared_lib/database.py
CHANGED
|
@@ -113,6 +113,11 @@ async def init_db():
|
|
|
113
113
|
UNIQUE(user_id, entity_type, entity_id)
|
|
114
114
|
)
|
|
115
115
|
''')
|
|
116
|
+
# Add the last_schedule_hash column if it doesn't exist, for backward compatibility
|
|
117
|
+
await connection.execute('''
|
|
118
|
+
ALTER TABLE user_schedule_subscriptions
|
|
119
|
+
ADD COLUMN IF NOT EXISTS last_schedule_hash TEXT;
|
|
120
|
+
''')
|
|
116
121
|
logger.info("Database tables initialized.")
|
|
117
122
|
|
|
118
123
|
async def log_user_action(user_id: int, username: str | None, full_name: str, avatar_pic_url: str | None, action_type: str, action_details: str | None):
|
|
File without changes
|
|
File without changes
|