Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-118
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021_118- Gazette
2021-118
Commits
c54394b2
Commit
c54394b2
authored
Nov 25, 2021
by
IT18396164-Silva K.K.S
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Classify the main topics
parent
ed1d81ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cgp1/CgpApp/views.py
cgp1/CgpApp/views.py
+4
-4
No files found.
cgp1/CgpApp/views.py
View file @
c54394b2
...
...
@@ -294,7 +294,7 @@ def PdfBreaker(gz_url):
# print(json_object)
return
json_object
#Classify the main topic
def
main_breaker
(
pubDate_
,
document
=
None
,
js
=
None
):
is_post_vacant
=
False
is_examinations
=
False
...
...
@@ -331,10 +331,10 @@ def PdfBreaker(gz_url):
gazetteno
=
re
.
sub
(
"[^0-9]"
,
""
,
gazetteno
)
pubDate
=
pubDate_
print
(
"date: "
,
pubDate
)
print
(
'==============================================================='
)
print
(
'===============================================================
====
'
)
print
(
"gazette no -"
,
gazetteno
)
print
(
'==============================================================='
)
print
(
'===============================================================
====
'
)
#check the output
isScraped
=
Gazette
.
objects
.
all
()
.
filter
(
GazetteNo
=
gazetteno
)
isScrapedStr
=
str
(
isScraped
)
if
isScrapedStr
==
'<QuerySet []>'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment