Skip to content

Commit

Permalink
fix #60
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Oct 16, 2017
1 parent cd24b7c commit c2efa4f
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 50 deletions.
1 change: 1 addition & 0 deletions Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
--------------------
* Added `mailto` support (#68) and added docs about polite pool (#66)
* Added support for `select` parameter (#65)
* Added all new `/works` route filters, and simplified filter option handling within library (#60)

0.5.0 (2017-07-20)
--------------------
Expand Down
Binary file modified docs/_build/doctrees/api.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/changelog_link.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
6 changes: 4 additions & 2 deletions docs/_build/html/_modules/habanero/crossref/crossref.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h1>Source code for habanero.crossref.crossref</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">..request</span> <span class="k">import</span> <span class="n">request</span>
<span class="kn">from</span> <span class="nn">..request_class</span> <span class="k">import</span> <span class="n">Request</span>
<span class="kn">from</span> <span class="nn">..habanero_utils</span> <span class="k">import</span> <span class="n">sub_str</span><span class="p">,</span><span class="n">check_kwargs</span>
<span class="kn">from</span> <span class="nn">.filters</span> <span class="k">import</span> <span class="n">filter_names</span><span class="p">,</span> <span class="n">filter_details</span>
<span class="kn">from</span> <span class="nn">.filters</span> <span class="k">import</span> <span class="n">filter_details</span>

<div class="viewcode-block" id="Crossref"><a class="viewcode-back" href="../../../api.html#habanero.Crossref">[docs]</a><span class="k">class</span> <span class="nc">Crossref</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="sd">&#39;&#39;&#39;</span>
Expand Down Expand Up @@ -858,7 +858,9 @@ <h1>Source code for habanero.crossref.crossref</h1><div class="highlight"><pre>
<span class="sd"> cr = Crossref()</span>
<span class="sd"> cr.filter_names()</span>
<span class="sd"> &#39;&#39;&#39;</span>
<span class="k">return</span> <span class="n">filter_names</span></div>
<span class="n">nms</span> <span class="o">=</span> <span class="n">filter_details</span><span class="o">.</span><span class="n">keys</span><span class="p">()</span>
<span class="n">nms</span><span class="o">.</span><span class="n">sort</span><span class="p">()</span>
<span class="k">return</span> <span class="n">nms</span></div>

<span class="nd">@staticmethod</span>
<div class="viewcode-block" id="Crossref.filter_details"><a class="viewcode-back" href="../../../filters.html#habanero.Crossref.filter_details">[docs]</a> <span class="k">def</span> <span class="nf">filter_details</span><span class="p">():</span>
Expand Down
1 change: 1 addition & 0 deletions docs/_build/html/changelog_link.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ <h2>0.5.0.2 (2017-10-15)<a class="headerlink" href="#id1" title="Permalink to th
<ul class="simple">
<li>Added <cite>mailto</cite> support (<a class="reference external" href="https://github.com/sckott/habanero/issues/68" title="Add mailto"><span class="xref issue">#68</span></a>) and added docs about polite pool (<a class="reference external" href="https://github.com/sckott/habanero/issues/66" title="Add to docs about polite pool"><span class="xref issue">#66</span></a>)</li>
<li>Added support for <cite>select</cite> parameter (<a class="reference external" href="https://github.com/sckott/habanero/issues/65" title="Implementation of the SELECT parameter"><span class="xref issue">#65</span></a>)</li>
<li>Added all new <cite>/works</cite> route filters, and simplified filter option handling within library (<a class="reference external" href="https://github.com/sckott/habanero/issues/60" title="new filter: full-text.application "><span class="xref issue">#60</span></a>)</li>
</ul>
</div>
<div class="section" id="id2">
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions habanero/crossref/crossref.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ..request import request
from ..request_class import Request
from ..habanero_utils import sub_str,check_kwargs
from .filters import filter_names, filter_details
from .filters import filter_details

class Crossref(object):
'''
Expand Down Expand Up @@ -719,7 +719,9 @@ def filter_names():
cr = Crossref()
cr.filter_names()
'''
return filter_names
nms = filter_details.keys()
nms.sort()
return nms

@staticmethod
def filter_details():
Expand Down

0 comments on commit c2efa4f

Please sign in to comment.