Skip to content

Commit

Permalink
change matching_key (none if store does not exist in DB) to store_add…
Browse files Browse the repository at this point in the history
…ress.
  • Loading branch information
davye committed Oct 20, 2024
1 parent 34564bb commit 28f8637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/backend/resource/resource_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ def update_price_watch(zip_code, store_address, store_name, item_name, item_pric
})
else:
# Store does not exist, add it
stores[matching_key] = {
stores[store_address] = {
'date': current_date,
'price': item_price,
'store_address': matching_key,
'store_address': store_address,
'store_name': store_name
}
# Update the document with the new 'stores' map
Expand Down

0 comments on commit 28f8637

Please sign in to comment.