Skip to content

Commit

Permalink
fix no team issue
Browse files Browse the repository at this point in the history
  • Loading branch information
adl212 committed Aug 16, 2021
1 parent 6290d4f commit 3522a43
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 15 deletions.
9 changes: 1 addition & 8 deletions NT.py.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: NT.py
Version: 4.1.1
Version: 4.1.5
Summary: A package to use the nitrotype api and get player or team stats
Home-page: https://github.com/adl212/NT.py
Author: adl212
Expand Down Expand Up @@ -55,7 +55,6 @@ Description: # NT.py
* `level` - Current level of racer
* `experience` - Amount of XP achieved
* `points` - Amount of achievement points achieved
* `country` - Country of racer
* `views` - Player profile views
* `created` - Account creation time
* `cars_owned` - Amount of cars owned
Expand All @@ -67,12 +66,6 @@ Description: # NT.py
* `nitros_used` - Amount of nitros used by the Racer
* `nitros_total` - Amount of nitros owned and used by the racer
* `races` - Amount of races the racer has finished
* `first` - Amount of races the racer placed first
* `second` - Amount of races the racer placed second
* `third` - Amount of races the racer placed third
* `first_perc` - Percentage of races the racer placed first
* `second_perc` - Percentage of races the racer placed second
* `third_perc` - Percentage of races the racer placed third
* `wpm_average` - The racer's current wpm average
* `wpm_high` - The racer's current highest wpm
*Note: These stats might return an error as the racer may have not raced in the last 24 hours, in the season, or in the entire length of their account*
Expand Down
9 changes: 6 additions & 3 deletions build/lib/nitrotype/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,13 @@ def get(*args, **kwargs):
self.success = False
return

if not newdata['tag']:
try:
if not newdata['tag']:
self.tag = ''
else:
self.tag = f"[{newdata['tag']}] "
except:
self.tag = ''
else:
self.tag = f"[{newdata['tag']}] "
self.userid = newdata['userID']
'''
userid = newdata['userID']
Expand Down
Binary file removed dist/NT.py-4.1.1.tar.gz
Binary file not shown.
Binary file not shown.
Binary file added dist/NT.py-4.1.5.tar.gz
Binary file not shown.
9 changes: 6 additions & 3 deletions nitrotype/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,13 @@ def get(*args, **kwargs):
self.success = False
return

if not newdata['tag']:
try:
if not newdata['tag']:
self.tag = ''
else:
self.tag = f"[{newdata['tag']}] "
except:
self.tag = ''
else:
self.tag = f"[{newdata['tag']}] "
self.userid = newdata['userID']
'''
userid = newdata['userID']
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="NT.py",
version="4.1.1",
version="4.1.5",
author="adl212",
author_email="[email protected]",
description="A package to use the nitrotype api and get player or team stats",
Expand Down

0 comments on commit 3522a43

Please sign in to comment.