Palshee
f1ed5fb174
Update ips_to_maps.py
...
leg.draggable() needs to now be leg.set_draggable(state=True) due to update with matplotlib
2021-03-10 10:57:55 -08:00
JonnyWong16
0d1685afed
Run futurize --unicode-literals
2020-07-04 13:31:02 -07:00
JonnyWong16
dc6507ffed
Run futurize --stage2
2020-07-04 13:23:47 -07:00
JonnyWong16
30dbccda77
Run futurize --stage1
2020-07-04 13:08:59 -07:00
Landon Abney
2be0e376f8
Massive style cleanup
...
Adds a basic `setup.cfg` file with configurations for flake8 and pylama,
fixes some basic issues with essentially every file including:
* Many, many, whitespace line cleanups
* Several unused variables and imports
* Missing coding and shabang lines
* Minor style fixes to more closely align with PEP8
* Turn `print` into function calls for Python 2/3 compat
* A few minor bugs
* Things like using an undefined `i` in `stream_limiter_ban_email.py`
2019-06-20 23:55:11 -07:00
Blacktwin
c9c57352f4
docstring correction
2019-01-13 12:16:04 -05:00
Blacktwin
ed8213774b
cleaning special characters from region, city, and friendly names.
...
removed unused get_platform function
2018-06-12 09:56:13 -04:00
Blacktwin
454aa9e2d0
Fixes for matplotlib==2.2.2:
...
fillcontinents > drawlsmask
remove Latitude and Longitude grid for World map
Other:
Added choice for including/excluding a legend
Changed arg -l location to -m map
2018-06-12 09:56:12 -04:00
Blacktwin
c0888d81ba
cleaning special characters from region, city, and friendly names.
...
removed unused get_platform function
2018-06-12 09:55:19 -04:00
Blacktwin
cb0368f18b
updated
2018-04-09 08:36:12 -04:00
Blacktwin
2a1f94f51f
updated
2018-03-29 09:49:28 -04:00
Blacktwin
bdff121f5b
PlexPy names to tautulli. Agent_id to notifier_id.
2018-03-29 09:48:21 -04:00
Blacktwin
3b5ed79505
maps update. pep8 edits
2018-03-29 09:48:19 -04:00
blacktwin
738d45c881
Update ips_to_maps.py
2017-07-29 15:48:50 -04:00
blacktwin
5a0503fd01
headless support
2017-07-21 11:35:49 -04:00
blacktwin
657ea2f3e7
check PLATFORM_COLORS
...
if platform is missing from PLATFORM_COLORS then default to DEFAULT_COLOR.
2017-07-21 10:31:29 -04:00
blacktwin
e3550aea81
check for total user count
...
Add check for user count in user_table to allow for greater than 25 users
2017-07-21 10:20:35 -04:00
blacktwin
9a2515bcd7
resolve n/a returns from geolite2
...
Passing on errors in get_geoip_info function instead of [returning it](https://github.com/blacktwin/JBOPS/blob/master/maps/ips_to_maps.py#L151 ).
Changing the [get_geo_dict function's exception](https://github.com/blacktwin/JBOPS/blob/master/maps/ips_to_maps.py#L195-L198 ) to catch and return culprit.
```python
except AttributeError:
print('User: {} IP: {} caused error in geo_dict.'.format(a.friendly_name, a.ip_address))
pass
except Exception as e:
print(e)
pass
return geo_dict
```
2017-07-21 09:29:32 -04:00
blacktwin
e9331861aa
Update ips_to_maps.py
2017-07-14 14:32:24 -04:00
blacktwin
fb150957c2
Create ips_to_maps.py
2017-07-13 10:26:31 -04:00