Compare commits

...

2 Commits

Author SHA1 Message Date
pictuga 65803b328d New git url and updated date in provided index.html 2020-04-13 15:30:32 +02:00
pictuga e6b7c0eb33 Fix app definition for uwsgi 2020-04-13 15:30:09 +02:00
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
from morss import main, cgi_wrapper as application from morss import main, cgi_standalone_app as application
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View File

@ -719,6 +719,9 @@ def cgi_encode(environ, start_response, app):
return [x if isinstance(x, bytes) else str(x).encode('utf-8') for x in out] return [x if isinstance(x, bytes) else str(x).encode('utf-8') for x in out]
cgi_standalone_app = cgi_encode(cgi_error_handler(cgi_dispatcher(cgi_file_handler(cgi_app))))
def cli_app(): def cli_app():
options = Options(filterOptions(parseOptions(sys.argv[1:-1]))) options = Options(filterOptions(parseOptions(sys.argv[1:-1])))
url = sys.argv[-1] url = sys.argv[-1]

View File

@ -35,8 +35,8 @@
<input type="text" id="url" name="url" placeholder="Feed url (http://example.com/feed.xml)" /> <input type="text" id="url" name="url" placeholder="Feed url (http://example.com/feed.xml)" />
</form> </form>
<code>Copyright: pictuga 2013-2014<br/> <code>Copyright: pictuga 2013-2020<br/>
Source code: https://github.com/pictuga/morss</code> Source code: https://git.pictuga.com/pictuga/morss</code>
<script> <script>
form = document.forms[0] form = document.forms[0]