mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 12:16:57 +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: "))
|
||||
# can't use instance variable because it will go inside www
|
||||
submission_csv_file = "../submissions/submission.csv"
|
||||
submission_df = pd.read_csv(submission_csv_file)
|
||||
verified_csv_df = pd.read_csv(verifiedcsvfile)
|
||||
unverified_csv_df = pd.read_csv(unverifiedcsvfile)
|
||||
match option:
|
||||
case 1:
|
||||
submission_df = pd.read_csv(submission_csv_file)
|
||||
case 1:
|
||||
print_colors(submission_df)
|
||||
try:
|
||||
indx = int(input("Which index do you want to add? "))
|
||||
|
@ -1231,7 +1231,6 @@ Maintenance:
|
|||
break
|
||||
|
||||
case 2:
|
||||
submission_df = pd.read_csv(submission_csv_file)
|
||||
print_colors(submission_df)
|
||||
try:
|
||||
indx = int(input("Which index do you want to add? "))
|
||||
|
@ -1250,6 +1249,13 @@ Maintenance:
|
|||
print_colors("Try again", is_error=True)
|
||||
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
|
||||
daskd.com,myname,"dasjklj"
|
||||
name.com,name,mane
|
||||
,link,name,desc
|
||||
0,daskd.com,myname,dasjklj
|
||||
|
|
|
Loading…
Add table
Add a link
Reference in a new issue