Skip to content

Commit

Permalink
change username for footprint project types into osm_username
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagellach37 committed Dec 1, 2022
1 parent 6f7097c commit 4c42a10
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,14 @@ def get_tasks(filename: str, project_id: str) -> pd.DataFrame:
write_sql_to_gzipped_csv(filename, sql_query)

df = load_df_from_csv(filename)

# Tasks for the "footprint" project type can contain a "username" attribute.
# We rename this attribute into "osm_username" to be able to distinguish it
# later from the username of the MapSwipe user.
# The optional OSM username in the tasks of the "footprint" project type refers
# to the OSM user who has last edited the OSM object.
if "username" in df.columns:
df.rename(columns={"username": "osm_username"}, inplace=True)
return df


Expand Down

0 comments on commit 4c42a10

Please sign in to comment.