Skip to content

Commit

Permalink
remove __init__ method in charm
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente committed Oct 9, 2024
1 parent 702252a commit 821d1e8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
20 changes: 0 additions & 20 deletions charm/src-docs/charm.py.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,13 @@
# <kbd>module</kbd> `charm.py`
Django Charm entrypoint.

**Global Variables**
---------------
- **CRON_EVERY_5_MINUTES**
- **CRON_AT_MIDNIGHT**


---

## <kbd>class</kbd> `DjangoCharm`
Django Charm service.

<a href="../../charm/src/charm.py#L23"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

### <kbd>function</kbd> `__init__`

```python
__init__(*args: Any) → None
```

Initialize the instance.



**Args:**

- <b>`args`</b>: passthrough to CharmBase.


---

Expand Down
13 changes: 0 additions & 13 deletions charm/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,16 @@
"""Django Charm entrypoint."""

import logging
import typing

import ops
import paas_app_charmer.django

logger = logging.getLogger(__name__)


CRON_EVERY_5_MINUTES = "*/5 * * * *"
CRON_AT_MIDNIGHT = "0 0 * * *"


class DjangoCharm(paas_app_charmer.django.Charm):
"""Django Charm service."""

def __init__(self, *args: typing.Any) -> None:
"""Initialize the instance.
Args:
args: passthrough to CharmBase.
"""
super().__init__(*args)


if __name__ == "__main__":
ops.main.main(DjangoCharm)

0 comments on commit 821d1e8

Please sign in to comment.