mirror of
https://github.com/norohind/ED-livery-tracker-advanced.git
synced 2025-05-30 23:29:16 +03:00
insert_livery_timestamp: return action_id
This commit is contained in:
parent
7bd46564cd
commit
13d8c28222
@ -21,7 +21,7 @@ class AbstractModel(abc.ABC):
|
||||
raise NotImplemented
|
||||
|
||||
@abc.abstractmethod
|
||||
def insert_livery_timestamp(self, livery_list: list) -> None:
|
||||
def insert_livery_timestamp(self, livery_list: list) -> int:
|
||||
raise NotImplemented
|
||||
|
||||
@abc.abstractmethod
|
||||
|
@ -91,7 +91,7 @@ class PostgresModel(AbstractModel):
|
||||
livery_list)
|
||||
|
||||
@errors_catcher
|
||||
def insert_livery_timestamp(self, livery_list: list) -> None:
|
||||
def insert_livery_timestamp(self, livery_list: list) -> int:
|
||||
"""
|
||||
Takes livery content with timestamps as list insert to DB. Helpful for historical data
|
||||
|
||||
@ -122,6 +122,8 @@ class PostgresModel(AbstractModel):
|
||||
postgres_sql_requests.insert_livery_timestamp,
|
||||
livery_list)
|
||||
|
||||
return action_id
|
||||
|
||||
@errors_catcher
|
||||
def get_diff_action_id(self, action_id: int) -> list:
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user