Skip to content

Commit

Permalink
Changed duplicate detector
Browse files Browse the repository at this point in the history
Only detect if revert count is same. Edit count will always be
different.
  • Loading branch information
sdamashek committed Dec 31, 2012
1 parent 64949a3 commit 68c8cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot.py
Expand Up @@ -36,10 +36,10 @@
print "RV Per Minute: ", theTuple[1] #Same, but for reverts
a = open("bot.txt") #open connection to the previous value file, bot.txt
b = a.read() #set value of a to b
if str(theTuple[0]) + " " + str(theTuple[1]) not in b:
if str(theTuple[1]) not in b:
a.close() #close to make way for write connection
a = open("bot.txt", "w") #Open in write connection
a.write(str(theTuple[0]) + " " + str(theTuple[1])) #Add current values to previous value file
a.write(str(theTuple[1])) #Add current values to previous value file
a.close() #A is no longer needed
print "Template:"
edit = """{{{{#if:{{{style|}}}|wdefcon/styles/{{{style}}}|{{{prefix|User:Zsinj/}}}Wdefcon}}
Expand Down

0 comments on commit 68c8cb0

Please sign in to comment.