-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e50be48
commit c5b58fc
Showing
5 changed files
with
39 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import click | ||
|
||
from betty.app import App | ||
from betty.cli import app_command | ||
from betty.cli import pass_project, command | ||
from betty.project import Project | ||
|
||
from ancestry.report import report | ||
|
||
|
||
@click.command(help="Generate an ancestry report.") | ||
@app_command | ||
async def _report(app: App) -> None: | ||
await report(app) | ||
@pass_project | ||
@command | ||
async def _report(project: Project) -> None: | ||
await report(project) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import logging | ||
|
||
from betty.app import App | ||
from betty.load import load | ||
from betty.project import Project | ||
|
||
|
||
async def report(app: App) -> None: | ||
async def report(project: Project) -> None: | ||
logging.getLogger("betty").setLevel(logging.DEBUG) | ||
await load(app) | ||
await load(project) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{% if app.project.configuration.author %} | ||
{% if project.configuration.author %} | ||
<p> | ||
{% trans author = app.project.configuration.author %}© Copyright {{ author }}, unless otherwise credited{% endtrans %} | ||
{% trans author = project.configuration.author %}© Copyright {{ author }}, unless otherwise credited{% endtrans %} | ||
</p> | ||
{% endif %} | ||
<p>{% trans %}Contact me on <a href="https://twitter.com/BartFeenstra">Twitter</a> or via <a href="mailto:[email protected]">email</a>{% endtrans %}</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters