Correction des indentations + .gitignore

This commit is contained in:
guimoz 2017-01-26 23:42:28 +01:00
parent b8664c1af2
commit 11d3ffd0c7
2 changed files with 103 additions and 12 deletions

91
.gitignore vendored Normal file
View file

@ -0,0 +1,91 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# dotenv
.env
# virtualenv
.venv/
venv/
ENV/
# Spyder project settings
.spyderproject
# Rope project settings
.ropeproject

View file

@ -77,7 +77,7 @@ def init_db():
and typeUtilisateur='membre'""")
rows = cur_mysql.fetchall()
for row in rows:
if row['prenom'] + ' ' + row['nom'] in IMMUNITY:
if row['prenom'] + ' ' + row['nom'] in IMMUNITY:
print(row)
cur_sqlite.execute("""insert into players values (?,?,?,?)""", \
((row["id"]), row["prenom"], row["nom"], 0))
@ -225,10 +225,10 @@ def cheat(player_id, target_id):
elif player_id in ko:
success = False
elif target_id in ok:
success = False
success = False
except TypeError:
pass
pass
return success