Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Babyfut
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PR-Baby-A18
Babyfut
Commits
4b5260cb
Commit
4b5260cb
authored
Jan 07, 2019
by
Antoine Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo in ginger/player
parent
035a14af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
core/ginger.py
core/ginger.py
+2
-2
core/player.py
core/player.py
+1
-1
No files found.
core/ginger.py
View file @
4b5260cb
...
...
@@ -14,8 +14,8 @@ class Ginger(object):
def
__init__
(
self
):
if
Ginger
.
_instance
!=
None
:
self
.
url
=
Settings
[
'ginger.url'
]
self
.
api_key
=
Settings
[
'ginger.key'
]
self
.
url
=
Ginger
.
URL
@
property
@
staticmethod
...
...
@@ -25,7 +25,7 @@ class Ginger(object):
return
Ginger
.
_instance
@
staticmethod
def
call
(
endpoint
,
params
=
{}):
def
get
(
endpoint
,
params
=
{}):
# Add the API key to the parameter list
params
[
'key'
]
=
Ginger
.
instance
.
api_key
...
...
core/player.py
View file @
4b5260cb
...
...
@@ -121,7 +121,7 @@ class Player(QObject):
'''
Retrieves a player's informations from the Ginger API
'''
response
=
Ginger
.
call
(
'badge/{}'
.
format
(
rfid
))
response
=
Ginger
.
instance
.
get
(
'badge/{}'
.
format
(
rfid
))
if
isinstance
(
response
,
HTTPStatus
):
logging
.
debug
(
'Request to Ginger failed ({}): returning Guest'
.
format
(
response
.
value
))
return
PlayerGuest
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment