diff options
author | luxagraf <sng@luxagraf.net> | 2024-08-21 12:10:14 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-08-21 12:10:14 -0500 |
commit | 45d3c43735f47e11bbe717b73f05f471750a39f2 (patch) | |
tree | 1fa6064002054f4950a29a91479528084b85cb3b /app/gtd/views.py | |
parent | 4f78b103d4b1cb157fe3c38d0c13a6002dc0e557 (diff) |
added a dedicated REI deals system
Diffstat (limited to 'app/gtd/views.py')
-rw-r--r-- | app/gtd/views.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/gtd/views.py b/app/gtd/views.py index 709766e..cdbd29e 100644 --- a/app/gtd/views.py +++ b/app/gtd/views.py @@ -223,7 +223,7 @@ class WiredPostListView(ListView): template_name = 'gtd/wiredpost_table.html' def get_queryset(self): - return WiredPost.objects.all().order_by("-needs_update") + return WiredPost.objects.filter(post_type=1,author="Scott Gilbertson").order_by("-needs_update") class WiredPostUpdateOverdueView(RedirectView): @@ -296,6 +296,10 @@ class WiredGenerateDealCodeView(TemplateView): template_name = "gtd/deal_code.html" +class WiredGenerateREIDealCodeView(TemplateView): + template_name = "gtd/reideal_code.html" + + class GTDNoteDeleteView(DeleteView): # specify the model you want to use model = GTDNote @@ -349,7 +353,7 @@ class UpdateDateView(RedirectView): query_string = True def get_redirect_url(self, *args, **kwargs): - for post in WiredPost.objects.all(): + for post in WiredPost.objects.filter(post_type=1,author="Scott Gilbertson"): if post.url: content = requests.get(post.url) soup = BeautifulSoup(content.text, 'html.parser') @@ -358,4 +362,3 @@ class UpdateDateView(RedirectView): post.date_last_pub = time post.save() return super().get_redirect_url(*args, **kwargs) - |