From 91fe3a96a731d7640a7709cee17295a5ad977fc4 Mon Sep 17 00:00:00 2001 From: Faisal Shahzad <84210709+seowings@users.noreply.github.com> Date: Sun, 22 Oct 2023 22:38:25 +0200 Subject: [PATCH] code cleanup --- mkdocs.yml | 2 -- src/staticwordpress/core/project.py | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 1a46866..52c5b40 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -10,8 +10,6 @@ edit_uri: blob/main/docs/ nav: - Home: index.md - Tutorial: tutorial.md - - Core: - - Project Class: core-project.md plugins: - search diff --git a/src/staticwordpress/core/project.py b/src/staticwordpress/core/project.py index 845399a..3627e4f 100644 --- a/src/staticwordpress/core/project.py +++ b/src/staticwordpress/core/project.py @@ -107,6 +107,11 @@ def is_older_version(self) -> bool: return self["version"] == VERISON def is_open(self) -> bool: + """Check if a Project is Open + + Returns: + bool: True/False if a Porject is already open. + """ return all( [ self.status