Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
fix st size syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
aahnik committed Sep 25, 2020
1 parent 2c3796e commit 7647ac4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions wappdriver/whatsapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ def category(arg):
class WhatsApp():
'''
Wappdriver is a python package that helps you automate sending messages through WhatsApp Web. It's very simple to use.
Visit https://aahnik.github.io/wappdriver to read the documentation
'''
'''

def __init__(self, timeout=50, session='default'):
self.timeout = timeout
Expand Down Expand Up @@ -87,7 +86,7 @@ def send(self, to, *args):
self.wappdriver.send_text(arg)
else:
self.wappdriver.send_file(arg, category(arg))
size_mb = os.stat.st_size(arg)*1e-6
size_mb = os.stat(arg).st_size*1e-6
time.sleep((self.timeout/10)*size_mb)
progress.update(1)

Expand Down

0 comments on commit 7647ac4

Please sign in to comment.