Skip to content

Commit

Permalink
Deployed e6bbeb3 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tfeldmann committed Jan 12, 2024
1 parent 6179a18 commit 3805ed2
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 20 deletions.
12 changes: 10 additions & 2 deletions actions/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,9 @@ <h2 id="python">python<a class="headerlink" href="#python" title="Permanent link
</td>
</tr>
</tbody>
</table>
</table> <p>Variables of previous filters are available, but you have to use the normal python
dictionary syntax <code>x = regex["my_group"]</code>.</p>

<details class="quote">
<summary>Source code in <code>organize/actions/python.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">12</span>
Expand Down Expand Up @@ -1679,7 +1681,10 @@ <h2 id="python">python<a class="headerlink" href="#python" title="Permanent link
<span class="normal">66</span>
<span class="normal">67</span>
<span class="normal">68</span>
<span class="normal">69</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@dataclass</span><span class="p">(</span><span class="n">config</span><span class="o">=</span><span class="n">ConfigDict</span><span class="p">(</span><span class="n">coerce_numbers_to_str</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">extra</span><span class="o">=</span><span class="s2">&quot;forbid&quot;</span><span class="p">))</span>
<span class="normal">69</span>
<span class="normal">70</span>
<span class="normal">71</span>
<span class="normal">72</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@dataclass</span><span class="p">(</span><span class="n">config</span><span class="o">=</span><span class="n">ConfigDict</span><span class="p">(</span><span class="n">coerce_numbers_to_str</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">extra</span><span class="o">=</span><span class="s2">&quot;forbid&quot;</span><span class="p">))</span>
<span class="k">class</span> <span class="nc">Python</span><span class="p">:</span>

<span class="w"> </span><span class="sd">&quot;&quot;&quot;Execute python code.</span>
Expand All @@ -1688,6 +1693,9 @@ <h2 id="python">python<a class="headerlink" href="#python" title="Permanent link
<span class="sd"> code (str): The python code to execute.</span>
<span class="sd"> run_in_simulation (bool):</span>
<span class="sd"> Whether to execute this code in simulation mode (Default false).</span>

<span class="sd"> Variables of previous filters are available, but you have to use the normal python</span>
<span class="sd"> dictionary syntax `x = regex[&quot;my_group&quot;]`.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">code</span><span class="p">:</span> <span class="nb">str</span>
Expand Down
8 changes: 5 additions & 3 deletions changelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal current" href="./">Changelog</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#unreleased">[Unreleased]</a>
<li class="toctree-l2"><a class="reference internal" href="#v301-2024-01-12">v3.0.1 (2024-01-12)</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#v300-2024-01-05">v3.0.0 (2024-01-05)</a>
</li>
Expand Down Expand Up @@ -206,9 +206,11 @@

<!-- BEGIN INCLUDE ../CHANGELOG.md -->
<h1 id="changelog">Changelog<a class="headerlink" href="#changelog" title="Permanent link">#</a></h1>
<h2 id="unreleased">[Unreleased]<a class="headerlink" href="#unreleased" title="Permanent link">#</a></h2>
<h2 id="v301-2024-01-12">v3.0.1 (2024-01-12)<a class="headerlink" href="#v301-2024-01-12" title="Permanent link">#</a></h2>
<ul>
<li>Nothing yet.</li>
<li>Fixes a bug where Quicktime and mp4 files return no Exif data.
(#313, @jleatham thanks for debugging!)</li>
<li>Fixes a bug where <code>exlude_dirs</code> are not correctly excluded. (#339)</li>
</ul>
<h2 id="v300-2024-01-05">v3.0.0 (2024-01-05)<a class="headerlink" href="#v300-2024-01-05" title="Permanent link">#</a></h2>
<ul>
Expand Down
27 changes: 15 additions & 12 deletions filters/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ <h2 id="created">created<a class="headerlink" href="#created" title="Permanent l
</table>
<details class="quote">
<summary>Source code in <code>organize/filters/created.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">57</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">56</span>
<span class="normal">57</span>
<span class="normal">58</span>
<span class="normal">59</span>
<span class="normal">60</span>
Expand All @@ -310,8 +311,7 @@ <h2 id="created">created<a class="headerlink" href="#created" title="Permanent l
<span class="normal">80</span>
<span class="normal">81</span>
<span class="normal">82</span>
<span class="normal">83</span>
<span class="normal">84</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">class</span> <span class="nc">Created</span><span class="p">(</span><span class="n">TimeFilter</span><span class="p">):</span>
<span class="normal">83</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">class</span> <span class="nc">Created</span><span class="p">(</span><span class="n">TimeFilter</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Matches files / folders by created date</span>

<span class="sd"> Attributes:</span>
Expand Down Expand Up @@ -3075,11 +3075,12 @@ <h2 id="python">python<a class="headerlink" href="#python" title="Permanent link
</table> <p><strong>Returns:</strong></p>
<ul>
<li>If your code returns <code>False</code> or <code>None</code> the file is filtered out,
otherwise the file is passed on to the next filters.</li>
otherwise the file is passed on to the next filters.</li>
<li><code>{python}</code> contains the returned value. If you return a dictionary (for
example <code>return {"some_key": some_value, "nested": {"k": 2}}</code>) it will be
accessible via dot syntax in your actions: <code>{python.some_key}</code>,
<code>{python.nested.k}</code>.</li>
example <code>return {"some_key": some_value, "nested": {"k": 2}}</code>) it will be
accessible via dot syntax actions: <code>{python.some_key}</code>, <code>{python.nested.k}</code>.</li>
<li>Variables of previous filters are available, but you have to use the normal python
dictionary syntax <code>x = regex["my_group"]</code>.</li>
</ul>

<details class="quote">
Expand Down Expand Up @@ -3149,7 +3150,8 @@ <h2 id="python">python<a class="headerlink" href="#python" title="Permanent link
<span class="normal">75</span>
<span class="normal">76</span>
<span class="normal">77</span>
<span class="normal">78</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@dataclass</span><span class="p">(</span><span class="n">config</span><span class="o">=</span><span class="n">ConfigDict</span><span class="p">(</span><span class="n">coerce_numbers_to_str</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">extra</span><span class="o">=</span><span class="s2">&quot;forbid&quot;</span><span class="p">))</span>
<span class="normal">78</span>
<span class="normal">79</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@dataclass</span><span class="p">(</span><span class="n">config</span><span class="o">=</span><span class="n">ConfigDict</span><span class="p">(</span><span class="n">coerce_numbers_to_str</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">extra</span><span class="o">=</span><span class="s2">&quot;forbid&quot;</span><span class="p">))</span>
<span class="k">class</span> <span class="nc">Python</span><span class="p">:</span>

<span class="w"> </span><span class="sd">&quot;&quot;&quot;Use python code to filter files.</span>
Expand All @@ -3162,11 +3164,12 @@ <h2 id="python">python<a class="headerlink" href="#python" title="Permanent link
<span class="sd"> **Returns:**</span>

<span class="sd"> - If your code returns `False` or `None` the file is filtered out,</span>
<span class="sd"> otherwise the file is passed on to the next filters.</span>
<span class="sd"> otherwise the file is passed on to the next filters.</span>
<span class="sd"> - `{python}` contains the returned value. If you return a dictionary (for</span>
<span class="sd"> example `return {&quot;some_key&quot;: some_value, &quot;nested&quot;: {&quot;k&quot;: 2}}`) it will be</span>
<span class="sd"> accessible via dot syntax in your actions: `{python.some_key}`,</span>
<span class="sd"> `{python.nested.k}`.</span>
<span class="sd"> example `return {&quot;some_key&quot;: some_value, &quot;nested&quot;: {&quot;k&quot;: 2}}`) it will be</span>
<span class="sd"> accessible via dot syntax actions: `{python.some_key}`, `{python.nested.k}`.</span>
<span class="sd"> - Variables of previous filters are available, but you have to use the normal python</span>
<span class="sd"> dictionary syntax `x = regex[&quot;my_group&quot;]`.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">code</span><span class="p">:</span> <span class="nb">str</span>
Expand Down
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ <h2 id="example-rules">Example rules<a class="headerlink" href="#example-rules"
- path: ~/Downloads
targets: dirs
subfolders: true
targets: dirs
filters:
- empty
actions:
Expand Down Expand Up @@ -398,5 +397,5 @@ <h2 id="other-donation-options">Other donation options:<a class="headerlink" hre

<!--
MkDocs version : 1.5.3
Build Date UTC : 2024-01-05 21:19:47.899054+00:00
Build Date UTC : 2024-01-12 17:27:02.576825+00:00
-->
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit 3805ed2

Please sign in to comment.