Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 11, 2023
1 parent c62e63b commit 706b1bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _modules/CveXplore/database/maintenance/Sources_process.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ <h1>Source code for CveXplore.database.maintenance.Sources_process</h1><div clas
<span class="k">if</span> <span class="n">item</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">None</span>

<span class="n">item</span> <span class="o">=</span> <span class="n">item</span><span class="p">[</span><span class="s2">&quot;cpe&quot;</span><span class="p">]</span>

<span class="c1"># filter out deprecated CPE&#39;s if CPE_FILTER_DEPRECATED is set to True</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">config</span><span class="o">.</span><span class="n">CPE_FILTER_DEPRECATED</span><span class="p">:</span>
<span class="k">if</span> <span class="n">item</span><span class="p">[</span><span class="s2">&quot;deprecated&quot;</span><span class="p">]:</span>
<span class="k">return</span> <span class="kc">None</span>

<span class="n">item</span> <span class="o">=</span> <span class="n">item</span><span class="p">[</span><span class="s2">&quot;cpe&quot;</span><span class="p">]</span>

<span class="k">if</span> <span class="s2">&quot;cpeName&quot;</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">item</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">None</span>

Expand Down

0 comments on commit 706b1bc

Please sign in to comment.