Skip to content

Commit

Permalink
updating customer storage query to only update space 0 when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
JackLewis-digirati committed Sep 13, 2023
1 parent a7138e5 commit 991ad72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/customer_storage_recalculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def __run_sql(conn):
WHERE "Space" != 0
GROUP BY "Customer"
ORDER BY "Customer") AS vals
WHERE cs."Customer" = vals."Customer";
WHERE cs."Customer" = vals."Customer" AND "Space" = 0;
""")

records = {
Expand Down

0 comments on commit 991ad72

Please sign in to comment.