mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
Added option 3 in lantern.py
This commit is contained in:
parent
3cc79f7392
commit
bc18f76568
2 changed files with 11 additions and 6 deletions
|
@ -1207,11 +1207,11 @@ Maintenance:
|
||||||
option = int(input("ENTER AN OPTION: "))
|
option = int(input("ENTER AN OPTION: "))
|
||||||
# can't use instance variable because it will go inside www
|
# can't use instance variable because it will go inside www
|
||||||
submission_csv_file = "../submissions/submission.csv"
|
submission_csv_file = "../submissions/submission.csv"
|
||||||
|
submission_df = pd.read_csv(submission_csv_file)
|
||||||
verified_csv_df = pd.read_csv(verifiedcsvfile)
|
verified_csv_df = pd.read_csv(verifiedcsvfile)
|
||||||
unverified_csv_df = pd.read_csv(unverifiedcsvfile)
|
unverified_csv_df = pd.read_csv(unverifiedcsvfile)
|
||||||
match option:
|
match option:
|
||||||
case 1:
|
case 1:
|
||||||
submission_df = pd.read_csv(submission_csv_file)
|
|
||||||
print_colors(submission_df)
|
print_colors(submission_df)
|
||||||
try:
|
try:
|
||||||
indx = int(input("Which index do you want to add? "))
|
indx = int(input("Which index do you want to add? "))
|
||||||
|
@ -1231,7 +1231,6 @@ Maintenance:
|
||||||
break
|
break
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
submission_df = pd.read_csv(submission_csv_file)
|
|
||||||
print_colors(submission_df)
|
print_colors(submission_df)
|
||||||
try:
|
try:
|
||||||
indx = int(input("Which index do you want to add? "))
|
indx = int(input("Which index do you want to add? "))
|
||||||
|
@ -1250,6 +1249,13 @@ Maintenance:
|
||||||
print_colors("Try again", is_error=True)
|
print_colors("Try again", is_error=True)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
case 3:
|
||||||
|
print(submission_df)
|
||||||
|
choose = int(input("Enter which row should be removed: "))
|
||||||
|
|
||||||
|
submission_df.drop(index=choose, inplace=True)
|
||||||
|
submission_df.to_csv(submission_csv_file)
|
||||||
|
print(submission_df)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
link,name,desc
|
,link,name,desc
|
||||||
daskd.com,myname,"dasjklj"
|
0,daskd.com,myname,dasjklj
|
||||||
name.com,name,mane
|
|
||||||
|
|
|
Loading…
Add table
Add a link
Reference in a new issue