Skip to content

Commit

Permalink
BGDIINF_SB-2461: Removed useless default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ltshb committed Oct 25, 2022
1 parent 14d4a30 commit 58eff4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
11 changes: 1 addition & 10 deletions app/helpers/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from app.settings import AWS_DB_REGION_NAME
from app.settings import AWS_DB_TABLE_NAME
from app.settings import AWS_S3_BUCKET_NAME
from app.settings import DEFAULT_AUTHOR_VERSION
from app.settings import KML_FILE_CONTENT_ENCODING
from app.settings import KML_FILE_CONTENT_TYPE

Expand Down Expand Up @@ -44,15 +43,7 @@ def __init__(self, table_name, bucket_name, endpoint_url, table_region):
self.endpoint = endpoint_url

def save_item(
self,
kml_id,
kml_admin_id,
file_key,
file_length,
timestamp,
empty=False,
author='',
author_version=DEFAULT_AUTHOR_VERSION
self, kml_id, kml_admin_id, file_key, file_length, timestamp, author, author_version, empty
):
logger.debug('Saving dynamodb item with primary key %s', kml_id)
db_item = {
Expand Down
4 changes: 2 additions & 2 deletions app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def create_kml():
file_key,
len(kml_string_gzip),
timestamp,
empty,
author,
author_version
author_version,
empty
)

return make_response(jsonify(get_json_metadata(db_item, with_admin_id=True)), 201)
Expand Down

0 comments on commit 58eff4d

Please sign in to comment.