added section show fields and section title fields to export and import
This commit is contained in:
@@ -349,7 +349,20 @@ def import_member(member):
|
|||||||
db.execute("INSERT INTO stamps (member_id, stamp_location) VALUES (?, ?)",(mid, stamp))
|
db.execute("INSERT INTO stamps (member_id, stamp_location) VALUES (?, ?)",(mid, stamp))
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
db.execute("INSERT INTO member (id,created,user_id, member_name,subtitle, bio,public,theme,homepage,main_icon) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",(mid, date_created_obj, user_id, name, subtitle, description,privacy, theme, homepage, main_icon_id))
|
show_blog = member["show-blog"]
|
||||||
|
show_icons = member["show-icons"]
|
||||||
|
show_blinkies = member["show-blinkies"]
|
||||||
|
show_stamps = member["show-stamps"]
|
||||||
|
show_groups = member["show-groups"]
|
||||||
|
|
||||||
|
blog_title = member["blog-title"]
|
||||||
|
icons_title = member["icons-title"]
|
||||||
|
blinkies_title = member["blinkies-title"]
|
||||||
|
stamps_title = member["stamps-title"]
|
||||||
|
groups_title = member["groups-title"]
|
||||||
|
|
||||||
|
db.execute("INSERT INTO member (id,created,user_id, member_name,subtitle, bio,public,theme,homepage,main_icon,show_blog,show_icons,show_blinkies,show_stamps,show_groups,blog_title,icons_title,blinkies_title,stamps_title,groups_title) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
|
||||||
|
(mid, date_created_obj, user_id, name, subtitle, description,privacy, theme, homepage, main_icon_id, show_blog, show_icons, show_blinkies, show_stamps, show_groups, blog_title, icons_title, blinkies_title, stamps_title, groups_title))
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
|
|
||||||
@@ -482,7 +495,17 @@ def generate_json(mid):
|
|||||||
"icons":icons,
|
"icons":icons,
|
||||||
"blinkies":blinkies,
|
"blinkies":blinkies,
|
||||||
"stamps":stamps,
|
"stamps":stamps,
|
||||||
"homepage-pin":homepage
|
"homepage-pin":homepage,
|
||||||
|
"show-blog":member[11],
|
||||||
|
"show-icons":member[12],
|
||||||
|
"show-blinkies":member[13],
|
||||||
|
"show-stamps":member[14],
|
||||||
|
"show-groups":member[15],
|
||||||
|
"blog-title":member[16],
|
||||||
|
"icons-title":member[17],
|
||||||
|
"blinkies-title":member[18],
|
||||||
|
"stamps-title":member[19],
|
||||||
|
"groups-title":member[20]
|
||||||
}
|
}
|
||||||
if main_icon:
|
if main_icon:
|
||||||
data["main-icon"] = main_icon[0]
|
data["main-icon"] = main_icon[0]
|
||||||
|
|||||||
@@ -51,6 +51,13 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<!-- {% if groups|length > 0 %}
|
||||||
|
<div class="heading big">Groups</div>
|
||||||
|
{% for group in groups %}
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %} -->
|
||||||
|
|
||||||
{% if member[13] %}
|
{% if member[13] %}
|
||||||
{% if blinkies|length > 0 %}
|
{% if blinkies|length > 0 %}
|
||||||
<div class="heading big">Blinkies</div>
|
<div class="heading big">Blinkies</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user