Skip to content

Commit c8b9636

Browse files
authored
Merge pull request #26 from dev-dull/23-var-name
fix variable name to reflect content
2 parents e14e1f6 + 8c46fe1 commit c8b9636

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ddb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ def referrer_counts(self):
215215
def _get_counts(self, property):
216216
stats = defaultdict(lambda: defaultdict(lambda: defaultdict(int)))
217217
for id, ddb in self.items():
218-
for referrer, count in getattr(ddb, property).items():
218+
for remote_ip, count in getattr(ddb, property).items():
219219
for value, _count in count.items():
220-
stats[id][referrer][value] += _count
220+
stats[id][remote_ip][value] += _count
221221
return stats
222222

223223

0 commit comments

Comments
 (0)