Merge branch 'master' into develop
This commit is contained in:
commit
8203e62359
|
@ -0,0 +1,20 @@
|
||||||
|
name: Python application
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python 3.8
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
python setup.py install
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
# SpaceApiCli
|
# SpaceApiCli
|
||||||
|
|
||||||
|
![Python application](https://github.com/reikkaps/spaceapicli/workflows/Python%20application/badge.svg?branch=master)
|
||||||
|
|
||||||
a simple cmdline tool to access the hackspace-API from
|
a simple cmdline tool to access the hackspace-API from
|
||||||
the unix console or toolbars like polybar
|
the unix console or toolbars like polybar
|
||||||
|
|
||||||
|
|
|
@ -49,10 +49,10 @@ def status(json, verbose):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if json['state']['open'] is False:
|
if json['state']['open'] is False:
|
||||||
print('🧘 closed'.format(str(json['space'])))
|
print(' {} is closed'.format(str(json['space'])))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
print('🌞 open'.format(str(json['space'])))
|
print(' {} is open'.format(str(json['space'])))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue