Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to SQLite DB from JSON files #20

Merged
merged 9 commits into from
Jul 6, 2024
Merged

Migrate to SQLite DB from JSON files #20

merged 9 commits into from
Jul 6, 2024

Conversation

ckreisl
Copy link
Owner

@ckreisl ckreisl commented Jun 15, 2024

fixes #5

Introduce a proper sqlite database to store any kind of data.
JSON files are to error prone if multiple users are interacting with the system.

Copy link

github-actions bot commented Jun 15, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
__init__.py00100% 
crawler.py300100% 
cs2.py831087%30, 37, 42, 50, 68, 89, 105, 118–120
db.py2072189%52, 73–76, 155, 157–158, 161–166, 352, 354–355, 358–359, 361–362
post.py79297%21, 61
bot
   __init__.py00100% 
   chats.py210100% 
   constants.py40100% 
   content.py76692%28, 49, 62, 90, 100, 106
   cs2.py2928770%37–42, 44–46, 97–99, 101–102, 104–106, 108–109, 111, 114, 116–120, 122–125, 127, 136, 140–143, 192, 306–309, 312–313, 315–316, 318, 320, 323–325, 328–329, 331–332, 334, 336, 339–341, 344–345, 347, 349–350, 352, 354, 357–359, 369, 371–373, 375–377, 379, 422, 424–426, 432, 434–436, 439, 442
   decorators.py330%1, 3, 5
   message.py1633379%83–86, 99, 120, 122, 132, 134–135, 137, 139–141, 150–153, 155, 167–170, 210, 213, 220, 222, 225–226, 241, 248–249, 266
   options.py982079%34, 41–43, 48–50, 52, 69, 73–74, 78, 80, 82, 85–87, 89, 159–160
   settings.py170100% 
   spam.py710100% 
   utils.py240100% 
parser
   __init__.py00100% 
   parser.py14192%21
   steam2telegram_html.py260100% 
   steam_list.py520100% 
   steam_news_image.py160100% 
   steam_news_youtube.py120100% 
   steam_update_heading.py210100% 
TOTAL130918386% 

Tests Skipped Failures Errors Time
137 0 💤 0 ❌ 0 🔥 3.984s ⏱️

@ckreisl ckreisl added the enhancement New feature or request label Jun 15, 2024
@ckreisl ckreisl merged commit 72488d5 into main Jul 6, 2024
1 check passed
@ckreisl ckreisl deleted the feature-db-sqlite branch July 6, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate .json files to sqlite database
1 participant