Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
shahriar
instagram-service
Commits
01f2596b
Commit
01f2596b
authored
Sep 05, 2021
by
shahriar
☹
Browse files
trim input param
parent
89c12e64
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/instagram/instaloader-service/getComments.py
View file @
01f2596b
...
...
@@ -5,7 +5,8 @@ import sys
username
=
str
(
sys
.
argv
[
1
])
password
=
str
(
sys
.
argv
[
2
])
mongo_connection_string
=
"mongodb://instagram:wcD3B5sGw0yQ@185.231.180.248:27017/instagram-lottry?authSource=admin&authMechanism=SCRAM-SHA-256"
# mongo_connection_string = "mongodb://instagram:wcD3B5sGw0yQ@185.231.180.248:27017/instagram-lottry?authSource=admin&authMechanism=SCRAM-SHA-256"
mongo_connection_string
=
"mongodb://localhost:27017/?serverSelectionTimeoutMS=5000&connectTimeoutMS=10000"
database_name
=
"instagram-lottry"
post_short_code
=
str
(
sys
.
argv
[
3
])
PROFILE
=
str
(
sys
.
argv
[
4
])
...
...
src/instagram/instaloader-service/getLikes.py
View file @
01f2596b
...
...
@@ -5,7 +5,8 @@ import sys
username
=
str
(
sys
.
argv
[
1
])
password
=
str
(
sys
.
argv
[
2
])
mongo_connection_string
=
"mongodb://instagram:wcD3B5sGw0yQ@185.231.180.248:27017/instagram-lottry?authSource=admin&authMechanism=SCRAM-SHA-256"
# mongo_connection_string = "mongodb://instagram:wcD3B5sGw0yQ@185.231.180.248:27017/instagram-lottry?authSource=admin&authMechanism=SCRAM-SHA-256"
mongo_connection_string
=
"mongodb://localhost:27017/?serverSelectionTimeoutMS=5000&connectTimeoutMS=10000"
database_name
=
"instagram-lottry"
post_short_code
=
str
(
sys
.
argv
[
3
])
PROFILE
=
str
(
sys
.
argv
[
4
])
...
...
src/lottery/lottery.service.ts
View file @
01f2596b
...
...
@@ -97,7 +97,7 @@ export class LotteryService {
async
changeStatus
(
changeStatus
:
ChangeStatusDto
)
{
const
foundUser
=
await
this
.
userModel
.
findOne
({
username
:
{
$regex
:
changeStatus
.
username
,
$regex
:
changeStatus
.
username
.
trim
()
,
$options
:
'
i
'
,
},
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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