GithubHelp home page GithubHelp logo

spotlightforbugs / webwoelfe Goto Github PK

View Code? Open in Web Editor NEW
4.0 0.0 2.0 19.85 MB

Werwolf mit Freunden kostenlos online Spielen

License: GNU General Public License v3.0

Python 55.39% CSS 3.09% JavaScript 2.10% HTML 39.43%
werewolf werewolf-game werewolf-online werewolves-of-millers-hollow browser-game css flask free gplv3 html

webwoelfe's Introduction

GitHub Snake dark

github linkedin stackoverflow devto twitter gitlab codepen hashnode

Willkommen auf meinem Github-Profil!

Ich bin Johannes Häusler und angehender Student der Informatik an der FH Aachen.


Metrics

webwoelfe's People

Contributors

blacktesseract avatar deepsource-autofix[bot] avatar deepsourcebot avatar dependabot[bot] avatar fossabot avatar heizkoerper avatar lemoncream8 avatar restyled-commits avatar spotlightforbugs avatar

Stargazers

 avatar  avatar  avatar  avatar

webwoelfe's Issues

Beim Erstellen einer neuen Runde muss der Debug-Mode aus bleiben.

Das Problem liegt hier:

webwoelfe/werwolf.py

Lines 397 to 399 in de5fb20

with open("logfile.txt", "w", encoding="UTF8") as file8:
file8.truncate(0)
file8.close()

Debug-Mode in werwolf.py:

webwoelfe/werwolf.py

Lines 397 to 398 in de5fb20

with open("logfile.txt", "w", encoding="UTF8") as file8:
file8.truncate(0)

Aktivierung und Verarbeitung des Debug-Mode:

webwoelfe/werwolf.py

Lines 606 to 646 in de5fb20

def log(debug: bool):
"""
The log function writes a string to the logfile.txt file, which is used by the
debug function to determine whether or not debug mode is on. If it's off, then
the logfile will be wiped clean so that way it doesn't interfere with any future
debugging efforts.
:param debug:bool: Decide whether or not to write a logfile
:return: A none object
"""
if debug == False:
with open("logfile.txt",'w',encoding="UTF8") as logfile_schreiben:
logfile_schreiben.write('FALSE')
else:
pass
def in_log_schreiben(a: str):
"""
The in_log_schreiben function writes a string to the logfile.txt file.
It takes one argument, which is a string.
:param a:str: Pass the message to be logged
:return: The result of the function
"""
with open("logfile.txt",'r',encoding="UTF8") as logfile_lesen:
if 'FALSE' in logfile_lesen.read():
logfile_lesen.close()
else:
with open("logfile.txt", "a", encoding="UTF8") as logfile:
now = datetime.now().strftime("%H:%M:%S")
logfile.write(str(now) + str(" >> " + a) + "\n")
logfile.close()

Overwriting functions

Description
The verliebt status overwrites the actions on death of the Jaeger and the Hexe

To Reproduce
Steps to reproduce the behavior:

If a person with a role with actions on death dies, the person has no option to use the actions of their role

Expected behavior
A clear and concise description of what you expected to happen.

all platforms, the error occurs on the server-side

TemplateSyntaxError: Unexpected end of template. Jinja was looking for the following tags: 'endblock'. The innermost b...

Sentry Issue: FLASK-N

TemplateSyntaxError: Unexpected end of template. Jinja was looking for the following tags: 'endblock'. The innermost block that needs to be closed is 'block'.
(8 additional frame(s) were not displayed)
...
  File "jinja2\environment.py", line 969, in _load_template
    template = self.loader.load(self, name, self.make_globals(globals))
  File "jinja2\loaders.py", line 138, in load
    code = environment.compile(source, name, filename)
  File "jinja2\environment.py", line 768, in compile
    self.handle_exception(source=source_hint)
  File "jinja2\environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "C:\Users\jojon\OneDrive - Bischöfliches Pius-Gymnasium - Aachen\Desktop\webwoelfe\werwoelfe\templates\index.html", line 68, in template
    {% endblock %}

Daten in SQLite speichern

dass ist vollkommen integriert in der Sprache. Das bisschen SQL, was man braucht, bekommt man hin.
Dazu kann man ja eine "init" Routine machen, wenn es die DB noch nicht gibt.

test

Feature Request

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I have an issue when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen. Add any considered drawbacks.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Teachability, Documentation, Adoption, Migration Strategy
If you can, explain how users will be able to use this and possibly write out a version the docs.
Maybe a screenshot or design?

Darkmode und whitemode

  • Nacht
  • Tag
  • Ergebnisseiten
mode = "dark" 
return (render_template('template',mode=mode))

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 23: invalid continuation byte

Sentry Issue: FLASK-A

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 23: invalid continuation byte
(1 additional frame(s) were not displayed)
...
  File "flask\app.py", line 1525, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "flask\app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask\app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "app.py", line 452, in spezielles_Dashboard
    players_vorhanden = file.read()  # read the log file
  File "codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)

(PY-S6007) Use of both safe and unsafe HTTP methods for a view

Description

An HTTP method is safe if it doesn't alter the state of the server i.e it leads to a read-only operation. Common safe HTTP methods: GET, HEAD, and OPTIONS. Whereas, POST, PUT, and DELETE are unsafe because they alter the server state. The use of both safe and unsafe HTTP …

Occurrences

There are 5 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/SpotlightForBugs/webwoelfe/issue/PY-S6007/occurrences/

UnboundLocalError: local variable 'nurNamen' referenced before assignment

Sentry Issue: FLASK-2

UnboundLocalError: local variable 'nurNamen' referenced before assignment
  File "flask\app.py", line 2077, in wsgi_app
    response = self.full_dispatch_request()
  File "flask\app.py", line 1525, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "flask\app.py", line 1523, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask\app.py", line 1509, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "app.py", line 484, in spezielles_Dashboard
    nurNamen.append(name_line)  # append the name to the list

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.