tweaks
This commit is contained in:
@@ -18,6 +18,8 @@ the other option is to export the entire system to json or zip file. **importing
|
|||||||
|
|
||||||
both are a little janky as they've just been implemented rather quickly to cover the base requirement of being able to migrate the database in some form. **don't rely on them, be sure to keep your own backups**.
|
both are a little janky as they've just been implemented rather quickly to cover the base requirement of being able to migrate the database in some form. **don't rely on them, be sure to keep your own backups**.
|
||||||
|
|
||||||
|
**individual member import via zip folder is not currently possible**
|
||||||
|
|
||||||
# dev set up (windows)
|
# dev set up (windows)
|
||||||
|
|
||||||
- after cloning, run `py -3 -m venv .venv` in the root directory and then `.venv\Scripts\activate`
|
- after cloning, run `py -3 -m venv .venv` in the root directory and then `.venv\Scripts\activate`
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ def new():
|
|||||||
def import_member_route():
|
def import_member_route():
|
||||||
db = get_db()
|
db = get_db()
|
||||||
response=""
|
response=""
|
||||||
data=None
|
|
||||||
mid=None
|
mid=None
|
||||||
|
|
||||||
if request.method=="POST":
|
if request.method=="POST":
|
||||||
@@ -367,7 +366,7 @@ def admin():
|
|||||||
else:
|
else:
|
||||||
zipf.extract(f)
|
zipf.extract(f)
|
||||||
|
|
||||||
return "upload zip"
|
return "<a href='/'>go home</a>"
|
||||||
|
|
||||||
users = db.execute("SELECT * FROM user").fetchall()
|
users = db.execute("SELECT * FROM user").fetchall()
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="heading">Backup</div>
|
<div class="heading">Backup</div>
|
||||||
<a href="{{ url_for('manage.export_system') }}">Export entire system TEXT ONLY</a><br>
|
<a href="{{ url_for('manage.export_system') }}">Export entire system as JSON</a> (without images)<br>
|
||||||
<a href="{{ url_for('manage.export_system_full') }}">Export entire system WITH ATTACHMENTS</a>
|
<a href="{{ url_for('manage.export_system_full') }}">Export entire system as ZIP</a> (with images)
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user