Skip to content

Commit

Permalink
Updated to fix bug in referer header.
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Feb 18, 2019
1 parent 42d4880 commit 91adf36
Show file tree
Hide file tree
Showing 372 changed files with 390 additions and 381 deletions.
3 changes: 2 additions & 1 deletion aerisweather/utils/AerisNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def get_json(url: str, app_id: str):
req = request.Request(url)
try:
req.add_header('Referer', app_id)
req.add_header('User-Agent', "AerisPythonSDK/" + __version__ + "/Python/" + sys.version)
req.add_header('User-Agent',
"AerisPythonSDK/" + __version__ + "/Python/" + sys.version.replace('\n', ''))

except URLError:
# we don't need the extra headers, so let it pass if it fails here
Expand Down
2 changes: 1 addition & 1 deletion aerisweather/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
__version__ = '0.3.1'
__version__ = '0.3.2'
4 changes: 2 additions & 2 deletions docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "AerisWeather Python SDK"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 0.3.1
PROJECT_NUMBER = 0.3.2

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand All @@ -51,7 +51,7 @@ PROJECT_BRIEF =
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
# the logo to the output directory.

PROJECT_LOGO = "C:/Users/scott/OneDrive/Pictures/Icons/Aeris Icons/AerisCloud-primary-sm.png"
PROJECT_LOGO = "C:/Users/scott/Pictures/Icons/Aeris Icons/AerisCloud-primary-sm.png"

# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
# into which the generated documentation will be written. If a relative path is
Expand Down
2 changes: 1 addition & 1 deletion docs/html/____init_____8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_date_time_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_error_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_location_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_network_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_place_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_profile_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_aeris_relative_to_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_alert_details_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_alert_includes_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_alert_timestamps_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_alerts_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_custom_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_endpoint_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_forecast_period_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_forecasts_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_data_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_dew_pt_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_period_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_precip_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_pressure_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_q_c_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_range_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_relative_humidity_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_sky_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_solrad_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_station_pressure_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_temp_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_visibility_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_weather_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_observations_summary_wind_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_parameter_type_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_places_response_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_request_action_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_request_filter_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_request_location_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_request_query_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/_request_sort_8py.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<td id="projectlogo"><img alt="Logo" src="AerisCloud-primary-sm.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AerisWeather Python SDK
&#160;<span id="projectnumber">0.3.1</span>
&#160;<span id="projectnumber">0.3.2</span>
</div>
</td>
</tr>
Expand Down
Loading

0 comments on commit 91adf36

Please sign in to comment.