Last active
December 18, 2015 14:29
-
-
Save jrmoserbaltimore/5797458 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if date <= x.lastplay: | |
if verbose: | |
print 'Current date is not newer than logged!' | |
if force: | |
print 'Forcing anyway.' | |
else | |
print 'Skipping entry.' | |
if not force: | |
session.rollback() | |
continue | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if date <= x.lastplay: | |
if verbose: | |
print 'Current date is not newer than logged!' | |
if verbose and force: | |
print 'Forcing anyway.' | |
elif verbose and not force: | |
print 'Skipping entry.' | |
if not force: | |
session.rollback() | |
continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if date <= x.lastplay: | |
if verbose: | |
print 'Current date is not newer than logged!' | |
if not force: | |
if verbose: | |
print 'Skipping entry.' | |
session.rollback() | |
continue | |
if verbose: | |
print 'Forcing anyway.' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if date <= x.lastplay: | |
if verbose: | |
print 'Current date is not newer than logged!' | |
if force: | |
print 'Forcing anyway.' | |
if not force: | |
if verbose: | |
print 'Skipping entry.' | |
session.rollback() | |
continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if date <= x.lastplay: | |
if verbose: | |
print 'Current date is not newer than logged!' | |
if not force: | |
if verbose: | |
print 'Skipping entry.' | |
session.rollback() | |
continue | |
if verbose: | |
print 'Forcing anyway.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment