Merge branch 'master' into develop

This commit is contained in:
Reik Kaps 2020-02-09 18:48:45 +01:00
commit 8203e62359
3 changed files with 24 additions and 2 deletions

20
.github/workflows/pythonapp.yml vendored Normal file
View File

@ -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

View File

@ -1,5 +1,7 @@
# 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
the unix console or toolbars like polybar

View File

@ -49,10 +49,10 @@ def status(json, verbose):
pass
if json['state']['open'] is False:
print('🧘 closed'.format(str(json['space'])))
print('{} is closed'.format(str(json['space'])))
return False
print('🌞 open'.format(str(json['space'])))
print('{} is open'.format(str(json['space'])))
return True