Compare commits
6 Commits
fix-styles
...
fix-output
Author | SHA1 | Date | |
---|---|---|---|
1b2f9a2278 | |||
937708f5d8 | |||
4c3ee712bb | |||
f5af965a33 | |||
bce16d336d | |||
729514ac89 |
@@ -744,10 +744,10 @@ class Search:
|
|||||||
full_items[f['id']] = f
|
full_items[f['id']] = f
|
||||||
|
|
||||||
## Shorter:
|
## Shorter:
|
||||||
break
|
#break
|
||||||
## Longer:
|
## Longer:
|
||||||
#if nextPageToken is None:
|
if nextPageToken is None:
|
||||||
# break
|
break
|
||||||
|
|
||||||
|
|
||||||
writer = self.ix.writer()
|
writer = self.ix.writer()
|
||||||
@@ -795,7 +795,7 @@ class Search:
|
|||||||
subprocess.call(['rm','-fr',temp_dir])
|
subprocess.call(['rm','-fr',temp_dir])
|
||||||
|
|
||||||
writer.commit()
|
writer.commit()
|
||||||
print("Done, updated %d documents in the index" % count)
|
print("Done, updated %d Google Drive files in the index" % count)
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
@@ -873,7 +873,7 @@ class Search:
|
|||||||
|
|
||||||
|
|
||||||
writer.commit()
|
writer.commit()
|
||||||
print("Done, updated %d documents in the index" % count)
|
print("Done, updated %d Github issues in the index" % count)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,20 +1,38 @@
|
|||||||
|
######################################
|
||||||
|
# github oauth
|
||||||
|
GITHUB_OAUTH_CLIENT_ID = "XXX"
|
||||||
|
GITHUB_OAUTH_CLIENT_SECRET = "YYY"
|
||||||
|
|
||||||
|
######################################
|
||||||
|
# github acces token
|
||||||
|
GITHUB_TOKEN = "XXX"
|
||||||
|
|
||||||
|
######################################
|
||||||
|
# groups.io
|
||||||
|
GROUPSIO_TOKEN = "XXXXX"
|
||||||
|
GROUPSIO_USERNAME = "XXXXX"
|
||||||
|
GROUPSIO_PASSWORD = "XXXXX"
|
||||||
|
|
||||||
|
######################################
|
||||||
|
# Disqus API public key
|
||||||
|
DISQUS_TOKEN = "XXXXX"
|
||||||
|
|
||||||
|
######################################
|
||||||
|
# everything else
|
||||||
|
|
||||||
# Location of index file
|
# Location of index file
|
||||||
INDEX_DIR = "search_index"
|
INDEX_DIR = "search_index"
|
||||||
|
|
||||||
# oauth client deets
|
|
||||||
GITHUB_OAUTH_CLIENT_ID = "XXX"
|
|
||||||
GITHUB_OAUTH_CLIENT_SECRET = "YYY"
|
|
||||||
GITHUB_TOKEN = "ZZZ"
|
|
||||||
|
|
||||||
# More information footer: Repository label
|
# More information footer: Repository label
|
||||||
FOOTER_REPO_ORG = "charlesreid1"
|
FOOTER_REPO_ORG = "dcppc"
|
||||||
FOOTER_REPO_NAME = "centillion"
|
FOOTER_REPO_NAME = "centillion"
|
||||||
|
|
||||||
# Toggle to show Whoosh parsed query
|
# Toggle to show Whoosh parsed query
|
||||||
SHOW_PARSED_QUERY=True
|
SHOW_PARSED_QUERY=True
|
||||||
|
|
||||||
TAGLINE = "Search All The Things"
|
TAGLINE = "Search the Data Commons"
|
||||||
|
|
||||||
# Flask settings
|
# Flask settings
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
SECRET_KEY = 'WWWWW'
|
SECRET_KEY = 'XXXXX'
|
||||||
|
|
||||||
|
@@ -66,7 +66,7 @@ class GroupsIOArchivesCrawler(object):
|
|||||||
|
|
||||||
## Short circuit
|
## Short circuit
|
||||||
## for debugging purposes
|
## for debugging purposes
|
||||||
break
|
#break
|
||||||
|
|
||||||
return subgroups
|
return subgroups
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ button#feedback {
|
|||||||
/* search results table */
|
/* search results table */
|
||||||
td#search-results-score-col,
|
td#search-results-score-col,
|
||||||
td#search-results-type-col {
|
td#search-results-type-col {
|
||||||
width: 100px;
|
width: 90px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.container {
|
div.container {
|
||||||
|
Reference in New Issue
Block a user