Browse Source

可配置visibility

fudan
欧醚 3 years ago
parent
commit
a158b7e37b
Signed by: OmmyZhang GPG Key ID: 757D312E7C9D13F7
3 changed files with 3 additions and 2 deletions
  1. +1
    -1
      app.py
  2. +1
    -0
      config.sample.py
  3. +1
    -1
      templates/list.html

+ 1
- 1
app.py View File

@ -70,7 +70,7 @@ def new_one():
if not Candidate.query.filter_by(content=content).first():
toot = th.status_post(
f"叮~ 有新的自荐报名(大家可以直接在此处评论):\n\n{content}",
visibility='unlisted'
visibility=C.visibility
)
c = Candidate(

+ 1
- 0
config.sample.py View File

@ -11,3 +11,4 @@ class C(object):
('test2', '2+2=?', '5', '4')
]
key = 'key'
visibility = 'public'

+ 1
- 1
templates/list.html View File

@ -88,7 +88,7 @@
<form action="new" method="post">
<div class="form-group qbox">
<h4>自荐提名</h4>
<textarea class="form-control" name="text" rows="5" maxlength="4000" placeholder="一段简单的自我陈述,向大家展示普通的自己。鼓励写写自己未被计入主流评价体系的闪光点,或是独特的经历与坚持。" required="required"></textarea>
<textarea class="form-control" name="text" rows="5" maxlength="4000" placeholder="一段自我陈述,向大家展示普通的自己。鼓励写写自己未被计入主流评价体系的闪光点,或是独特的经历与坚持。" required="required"></textarea>
<hr/>
<textarea class="form-control" name="privateText" rows="3" maxlength="1000" placeholder="可以在这里写一些不想被公开的内容,只有评委们能看到。如果你希望留下联系方式,也可以写在这里。"></textarea>
<hr/>

Loading…
Cancel
Save