Skip to content

Commit a62ae19

Browse files
committed
easy fixes
1 parent 9230203 commit a62ae19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mapswipe_workers/mapswipe_workers/firebase_to_postgres/update_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,12 @@ def set_contributor_count_in_firebase(project_id: str):
305305
)
306306

307307

308-
def set_tileserver_api_key(project_id: str, api_key: str):
308+
def set_tileserver_api_key(project_id: str, api_key: str) -> None:
309309
"""Set the tileserver api key value in Firebase."""
310310

311311
fb_db = auth.firebaseDB()
312312
project_progress_ref = fb_db.reference(
313313
f"v2/projects/{project_id}/tileServer/apiKey"
314314
)
315315
project_progress_ref.set(api_key)
316-
logger.info(f"set tileServer/apiKey attribute for project {project_id}: {api_key}")
316+
logger.info(f"set tileServer/apiKey attribute for project: {project_id}")

mapswipe_workers/mapswipe_workers/mapswipe_workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def run_delete_project(project_id, project_ids):
424424
),
425425
)
426426
@click.option("--api-key", help="the new api key to use", type=str, required=True)
427-
def run_set_tileserver_api_key(project_id, project_ids, api_key):
427+
def run_set_tileserver_api_key(project_id, project_ids, api_key) -> None:
428428
"""Change the imagery API key for a project in Firebase."""
429429
if not project_ids and not project_id:
430430
click.echo("Missing argument")

0 commit comments

Comments
 (0)