refactor: objects -> models

main
Khiem Ton 2 years ago
parent 3f61f341d4
commit cb0ff3b2f0
Signed by: th4tkh13m
GPG Key ID: 4D9CF147DCADD05D

@ -28,6 +28,7 @@ class Pokemon(Base):
cp, level, attack, defense, hp,
iv, shiny, start_time, end_time,
country):
super().__init__()
self.name = name
self.number = number
self.location = location

@ -18,6 +18,7 @@ class Raid(Base):
PrimaryKeyConstraint(name, location, start_time, end_time, name="raid_pk", sqlite_on_conflict='IGNORE')
def __init__(self, name, number, level, location, start_time, end_time, country):
super().__init__()
self.name = name
self.number = number
self.level = level
Loading…
Cancel
Save