Skip to content

Commit

Permalink
Merge pull request #715 from hotosm/mbtiles
Browse files Browse the repository at this point in the history
update: task_id field from mbtiles_path model to background_task_id
  • Loading branch information
nrjadkry authored Aug 13, 2023
2 parents a74e562 + 555714d commit 88953e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/backend/app/db/db_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,5 @@ class DbTilesPath(Base):
status = Column(Enum(BackgroundTaskStatus), nullable=False)
path = Column(String)
tile_source = Column(String)
task_id = Column(String)
created_at = Column(DateTime, default=timestamp)
created_by_id = Column(BigInteger, ForeignKey("users.id"), primary_key=True)
created_by = relationship(DbUser, backref="user_roles")
background_task_id = Column(String)
created_at = Column(DateTime, default=timestamp)
2 changes: 1 addition & 1 deletion src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -2107,7 +2107,7 @@ async def get_project_tiles(db: Session,

tile_path_instance = db_models.DbTilesPath(
project_id = project_id,
task_id = str(background_task_id),
background_task_id = str(background_task_id),
status = 1,
tile_source = source,
path = outfile
Expand Down

0 comments on commit 88953e6

Please sign in to comment.