Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
md-arif-shaikh committed Mar 18, 2022
1 parent 950d1e6 commit e668666
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions expenses.el
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Alist bank profiles. Each element has the form
(defun expenses--create-user-directory-name (user)
"Create user directory name based on USER."
(if user
(concat (downcase (replace-in-string " " "_" user)) "/")
(concat (downcase (replace-regexp-in-string " " "_" user)) "/")
""))

(defun expenses--get-file-name (date &optional user)
Expand Down Expand Up @@ -209,7 +209,6 @@ Looks for the last two existing files and collect the details."
"Get directory for USER."
(if user
(let ((user-dir (concat expenses-directory user)))
(file-exists-p user-dir)
(unless (file-exists-p user-dir)
(setq user-dir (concat expenses-directory (expenses--create-user-directory-name user)))
(make-directory user-dir)))
Expand Down Expand Up @@ -483,10 +482,8 @@ Optional argument USER for user name."
(categories (expenses--ask-for-categories))
(month (format-time-string "%B" (org-time-string-to-seconds date)))
(year (format-time-string "%Y" (org-time-string-to-seconds date)))
(buff-name (format "*expenses-%s-%s-%s*" month year (string-join categories "-")))
(expenses (cl-loop for category in categories
collect (expenses--get-expense-for-month-filtered-by-categories date category user)))
(message-strings)
(sorted-expenses-category-list)
(buff-name (format "%s%s" (temporary-file-directory) "pie.py")))
(setq sorted-expenses-category-list (expenses--sort-expenses (mapcar #'string-to-number expenses) categories))
Expand Down

0 comments on commit e668666

Please sign in to comment.