1 Commits

6 changed files with 34 additions and 51 deletions

View File

@@ -1,17 +0,0 @@
Thanks for using Centillion. Your feedback is important to us.
### When reporting a bug, please be sure to include the following:
- [ ] A descriptive title
- [ ] The behavior you expect to see and the actual behavior observed
- [ ] Steps to reproduce the behavior
- [ ] What browser you are using
### When you open an issue for a feature request, please add as much detail as possible:
- [ ] A descriptive title
- [ ] A description of the problem you're trying to solve, including *why* you think this is a problem
- [ ] An overview of the suggested solution
- [ ] If the feature changes current behavior, please explain why your solution is better
See read [our contributor guidelines](https://github.com/dcppc/centillion/blob/dcppc/CONTRIBUTING.md)
for more details about contributing to this project.

View File

@@ -744,10 +744,10 @@ class Search:
full_items[f['id']] = f
## Shorter:
#break
## Longer:
if nextPageToken is None:
break
## Longer:
#if nextPageToken is None:
# break
writer = self.ix.writer()
@@ -795,7 +795,7 @@ class Search:
subprocess.call(['rm','-fr',temp_dir])
writer.commit()
print("Done, updated %d Google Drive files in the index" % count)
print("Done, updated %d documents in the index" % count)
# ------------------------------
@@ -873,7 +873,7 @@ class Search:
writer.commit()
print("Done, updated %d Github issues in the index" % count)
print("Done, updated %d documents in the index" % count)

View File

@@ -1,38 +1,20 @@
######################################
# 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
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
FOOTER_REPO_ORG = "dcppc"
FOOTER_REPO_ORG = "charlesreid1"
FOOTER_REPO_NAME = "centillion"
# Toggle to show Whoosh parsed query
SHOW_PARSED_QUERY=True
TAGLINE = "Search the Data Commons"
TAGLINE = "Search All The Things"
# Flask settings
DEBUG = True
SECRET_KEY = 'XXXXX'
SECRET_KEY = 'WWWWW'

View File

@@ -66,7 +66,7 @@ class GroupsIOArchivesCrawler(object):
## Short circuit
## for debugging purposes
#break
break
return subgroups

View File

@@ -58,7 +58,7 @@ button#feedback {
/* search results table */
td#search-results-score-col,
td#search-results-type-col {
width: 90px;
width: 100px;
}
div.container {
@@ -134,7 +134,7 @@ li.search-group-item {
}
div.url {
background-color: rgba(40,40,60,.15);
background-color: rgba(86,61,124,.15);
padding: 8px;
}

View File

@@ -102,6 +102,24 @@
</li>
{#
# more options...
#}
<li class="list-group-item">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 info">
<b>More Options <i class="fa fa-chevron-down"></i></b>
</div>
</div>
</div>
</li>
</ul>
</div>
</div>