Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix bug when removing duplicate rows from user_ips #4434

Merged
merged 4 commits into from
Jan 22, 2019

Conversation

erikjohnston
Copy link
Member

This was caused by accidentally overwritting a last_seen variable
in a for loop, causing the wrong value to be written to the progress
table. The result of which was that we didn't scan sections of the table
when searching for duplicates, and so some duplicates did not get
deleted.

This was caused by accidentally overwritting a `last_seen` variable
in a for loop, causing the wrong value to be written to the progress
table. The result of which was that we didn't scan sections of the table
when searching for duplicates, and so some duplicates did not get
deleted.
if row:
return row[0]
else:
return None
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just moving the row[0] from the if statement below into the function, as it feels cleaner

@codecov-io
Copy link

codecov-io commented Jan 22, 2019

Codecov Report

Merging #4434 into develop will increase coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #4434      +/-   ##
===========================================
+ Coverage    73.68%   73.72%   +0.03%     
===========================================
  Files          300      300              
  Lines        29703    29705       +2     
  Branches      4882     4882              
===========================================
+ Hits         21887    21899      +12     
+ Misses        6386     6378       -8     
+ Partials      1430     1428       -2

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants