mirror of
https://github.com/norohind/ED-livery-tracker-advanced.git
synced 2025-06-04 17:41:22 +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
|
raise NotImplemented
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def insert_livery_timestamp(self, livery_list: list) -> None:
|
def insert_livery_timestamp(self, livery_list: list) -> int:
|
||||||
raise NotImplemented
|
raise NotImplemented
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
|
@ -91,7 +91,7 @@ class PostgresModel(AbstractModel):
|
|||||||
livery_list)
|
livery_list)
|
||||||
|
|
||||||
@errors_catcher
|
@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
|
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,
|
postgres_sql_requests.insert_livery_timestamp,
|
||||||
livery_list)
|
livery_list)
|
||||||
|
|
||||||
|
return action_id
|
||||||
|
|
||||||
@errors_catcher
|
@errors_catcher
|
||||||
def get_diff_action_id(self, action_id: int) -> list:
|
def get_diff_action_id(self, action_id: int) -> list:
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user