Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu committed Mar 23, 2020
1 parent fd9d374 commit 4bd05b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,14 @@ async def main():
return

data = gios.data
available = gios.available
latitude = gios.latitude
longitude = gios.longitude
station_name = gios.station_name

if available:
print(f"Data available: {available}")
print(
f"Longitude: {longitude}, latitude: {latitude}, station name: {station_name}"
)
print(data)
print(f"Longitude: {longitude}")
print(f"Latitude: {latitude}")
print(f"Station name: {station_name}")
print(data)


loop = asyncio.get_event_loop()
Expand Down
11 changes: 4 additions & 7 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@ async def main():
return

data = gios.data
available = gios.available
latitude = gios.latitude
longitude = gios.longitude
station_name = gios.station_name

if available:
print(f"Data available: {available}")
print(
f"Longitude: {longitude}, latitude: {latitude}, station name: {station_name}"
)
print(data)
print(f"Longitude: {longitude}")
print(f"Latitude: {latitude}")
print(f"Station name: {station_name}")
print(data)


loop = asyncio.get_event_loop()
Expand Down

0 comments on commit 4bd05b3

Please sign in to comment.