Skip to content

Commit

Permalink
feat: ttttt
Browse files Browse the repository at this point in the history
  • Loading branch information
tdwaf committed Dec 1, 2024
1 parent a641565 commit a9a8339
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions kusogaki_bot/data/food_counter_repository.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import logging
from datetime import datetime

from db import Database
from models import FoodCounter
from sqlalchemy.exc import SQLAlchemyError

from kusogaki_bot.data.db import Database
from kusogaki_bot.data.models import FoodCounter


class FoodCounterRepository:
"""Repository class for food counter persistence using PostgreSQL."""
Expand Down
3 changes: 2 additions & 1 deletion kusogaki_bot/data/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from db import Base
from sqlalchemy import JSON, Column, DateTime, Integer, String
from sqlalchemy.sql import func

from kusogaki_bot.data.db import Base


class FoodCounter(Base):
__tablename__ = 'food_counters'
Expand Down
5 changes: 3 additions & 2 deletions kusogaki_bot/data/reminder_repository.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import logging
from typing import Dict

from db import Database
from models import Reminder
from sqlalchemy.exc import SQLAlchemyError

from kusogaki_bot.data.db import Database
from kusogaki_bot.data.models import Reminder


class ReminderRepository:
"""Repository class for reminder persistence using PostgreSQL."""
Expand Down
5 changes: 3 additions & 2 deletions kusogaki_bot/data/scheduled_thread_repository.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import logging
from typing import Dict

from db import Database
from models import ScheduledThread
from sqlalchemy.exc import SQLAlchemyError

from kusogaki_bot.data.db import Database
from kusogaki_bot.data.models import ScheduledThread


class ScheduledThreadRepository:
"""Repository class for scheduled thread persistence using PostgreSQL."""
Expand Down

0 comments on commit a9a8339

Please sign in to comment.