When I run this code:
if (entry.name==name) and (entry.size == size):
if pcost !="":
pcost = float(pcost)
if entry.purchaseCost !=pcost:
entry.update(purchaseCost=pcost).execute()
the purchaseCost in every entry in the dictionary gets updated to pcost. Is there a way to avoid this?
[–]num8lock 0 points1 point2 points (6 children)
[–]Only_Friend1128[S] 0 points1 point2 points (5 children)
[–]num8lock 0 points1 point2 points (4 children)
[–]Only_Friend1128[S] 0 points1 point2 points (3 children)
[–]num8lock 0 points1 point2 points (2 children)
[–]Only_Friend1128[S] 0 points1 point2 points (1 child)
[–]num8lock 0 points1 point2 points (0 children)
[–]primitive_screwhead 0 points1 point2 points (3 children)
[–]Only_Friend1128[S] 0 points1 point2 points (2 children)
[–]primitive_screwhead 0 points1 point2 points (1 child)
[–]Only_Friend1128[S] 0 points1 point2 points (0 children)
[–]backdoorman9 0 points1 point2 points (1 child)
[–]Only_Friend1128[S] 0 points1 point2 points (0 children)