Finish implementation and tests for the cheat system #3
|
@ -305,8 +305,9 @@ class Agora(object):
|
||||||
in order to gain the most profits and sales.
|
in order to gain the most profits and sales.
|
||||||
"""
|
"""
|
||||||
ads, place = self.sort_ads_annotate_place(ads)
|
ads, place = self.sort_ads_annotate_place(ads)
|
||||||
|
all_results_us = all([ad[1] == settings.Agora.Username for ad in ads])
|
||||||
if place == 0:
|
if place == 0:
|
||||||
if len(ads) > 1:
|
if len(ads) > 1 and not all_results_us:
|
||||||
competitor_index = None
|
competitor_index = None
|
||||||
for index, ad in enumerate(ads):
|
for index, ad in enumerate(ads):
|
||||||
if ad[1] != settings.Agora.Username:
|
if ad[1] != settings.Agora.Username:
|
||||||
|
|
Loading…
Reference in New Issue