Skip to content
Snippets Groups Projects
Commit b4ee7177 authored by Muhammad Ismail's avatar Muhammad Ismail
Browse files

test

parent 29a0bfb1
Branches master
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
#
# Copyright 2012 Linkoping University
# -----------------------------------------------------------------------------
#test
"""Implementation of a simple database class."""
import random
......@@ -43,7 +43,7 @@ class Database(object):
def write(self, fortune):
"""Write a new fortune to the database."""
self.array.append(fortune)
self.array.append(fortune)
with open(self.db_file, "a") as myfile:
myfile.write(fortune + "\n%\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment