Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arg-helper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robin Sonnabend
arg-helper
Commits
aa1d9454
Commit
aa1d9454
authored
6 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Patches
Plain Diff
Add config file
parent
02107a1f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config.example.py
+10
-0
10 additions, 0 deletions
config.example.py
server.py
+4
-9
4 additions, 9 deletions
server.py
with
14 additions
and
9 deletions
config.example.py
0 → 100644
+
10
−
0
View file @
aa1d9454
SECRET_KEY
=
os
.
urandom
(
64
)
wikis
=
{
"
Wikipedia Deutsch
"
:
"
https://de.wikipedia.org/wiki/
"
,
"
Wikipedia English
"
:
"
https://en.wikipedia.org/wiki/
"
,
"
Wikipedia Deutsch (mobil)
"
:
"
https://de.m.wikipedia.org/wiki/
"
,
"
Wikipedia English (mobile)
"
:
"
https://en.m.wikipedia.org/wiki/
"
,
}
This diff is collapsed.
Click to expand it.
server.py
+
4
−
9
View file @
aa1d9454
...
@@ -7,17 +7,12 @@ import bs4
...
@@ -7,17 +7,12 @@ import bs4
import
os
import
os
import
urllib
import
urllib
app
=
Flask
(
__name__
,
static_folder
=
"
argumenthelperstatic
"
)
import
config
app
.
config
[
"
SECRET_KEY
"
]
=
os
.
urandom
(
64
)
app
=
Flask
(
__name__
,
static_folder
=
"
argumenthelperstatic
"
)
app
.
config
.
from_object
(
config
)
wikis
=
{
wikis
=
config
.
WIKIS
"
Wikipedia Deutsch
"
:
"
https://de.wikipedia.org/wiki/
"
,
"
Wikipedia English
"
:
"
https://en.wikipedia.org/wiki/
"
,
"
Wikipedia Deutsch (mobil)
"
:
"
https://de.m.wikipedia.org/wiki/
"
,
"
Wikipedia English (mobile)
"
:
"
https://en.m.wikipedia.org/wiki/
"
,
"
FSMPI PubWiki
"
:
"
https://pubwiki.fsmpi.rwth-aachen.de
"
,
}
wiki_choices
=
list
(
zip
(
wikis
.
keys
(),
wikis
.
keys
()))
wiki_choices
=
list
(
zip
(
wikis
.
keys
(),
wikis
.
keys
()))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment