Skip to content

Commit

Permalink
Fix adding table
Browse files Browse the repository at this point in the history
  • Loading branch information
ckreisl committed Jul 6, 2024
1 parent 9462a30 commit fb15920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cs2posts/bot/cs2.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ async def async_init(self) -> None:
if not self.post_db.filepath.exists():
logger.info('Post database not found. Creating new one...')
await self.post_db.create()
await self.post_db.create_table()
await self.post_db.create_table()

if not self.chat_db.filepath.exists():
logger.info('Chat database not found. Creating new one...')
await self.chat_db.create()
await self.chat_db.create_table()
await self.chat_db.create_table()

if settings.IMPORT_CHATS_FROM_JSON is not None:
try:
Expand Down

1 comment on commit fb15920

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.py3009568%37–42, 44–46, 97–100, 102–105, 107–109, 111–112, 114–116, 118–119, 121, 124, 126–130, 132–135, 137, 146, 150–153, 202, 316–319, 322–323, 325–326, 328, 330, 333–335, 338–339, 341–342, 344, 346, 349–351, 354–355, 357, 359–360, 362, 364, 367–369, 379, 381–383, 385–387, 389, 432, 434–436, 442, 444–446, 449, 452
   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% 
TOTAL131719185% 

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

Please sign in to comment.