Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

2022 #10 #38

Closed
wants to merge 9 commits into from
Closed

2022 #10 #38

wants to merge 9 commits into from

Conversation

janczarny
Copy link

@janczarny janczarny commented Aug 8, 2022

#10 + Features

Feature:

/result - If results file is missing - it will display error msg instead internal error

  1. Vagrant MSG_UP / MSG_SSH
  • Added information about default credentials into Admin Panel
  1. Machine TZ
  • Preparing ground for #39

Remarks:
I was added try catch, because we still get IO exception when result file is missing :(

Addded default Login and Password
---
Added missing datetime 2 str format.
%Y-%m-%d %H:%M
- planned_start_sending
- closes_on_date
@janczarny janczarny changed the title 2022 #10 2022 #10 Aug 8, 2022
@janczarny janczarny linked an issue Aug 8, 2022 that may be closed by this pull request
@janczarny janczarny mentioned this pull request Aug 8, 2022
@karolba
Copy link
Contributor

karolba commented Aug 9, 2022

Chyba coś nie poszło, kod z brancha się wywala

Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]: [2022-08-09 20:00:48 +0000] [7321] [ERROR] Exception in worker process
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]: Traceback (most recent call last):
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 589, in spawn_worker
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:     worker.init_process()
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 134, in init_process
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:     self.load_wsgi()
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 146, in load_wsgi
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:     self.wsgi = self.app.wsgi()
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 67, in wsgi
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:     self.callable = self.load()
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 58, in load
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:     return self.load_wsgiapp()
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:     return util.import_app(self.app_uri)
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "/usr/lib/python3/dist-packages/gunicorn/util.py", line 384, in import_app
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:     mod = importlib.import_module(module)
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:     return _bootstrap._gcd_import(name[level:], package, level)
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "<frozen importlib._bootstrap_external>", line 790, in exec_module
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:   File "/opt/sw/sw-admin/sw_admin.py", line 27, in <module>
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]:     machTz = datetime.datetime.now().astimezone().tzinfo
Aug 09 20:00:48 system-wyborczy-development sw-admin[7321]: AttributeError: type object 'datetime.datetime' has no attribute 'datetime'

Datetime Fix
Schema Fix (Null is default  for planned_start_sending)
@janczarny
Copy link
Author

janczarny commented Aug 9, 2022

Dzięki, Fixed ;-)

@janczarny
Copy link
Author

Done, Merge poszedł na #7

@janczarny janczarny closed this Aug 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zmiana typu kolumny closes_on_date na typ timestamptz
2 participants