2014.11.13 – Snow Day

It was cold when I got up in the morning. My pajamas were pretty comfortable though so I threw on my warm fuzzy boots and a sweatshirt. I should have exercised a bit but I headed right for my computer instead. I checked my email and there was nothing pressing so I decided to file a bug report for an issue I found. I first made absolutely sure I could reproduce it a couple of times. I’m still very much in the over thinking stage of things.

Snow was in the forecast and schools were already on a two hour late start but I soon got a phone call that the schools were completely closed. I still hadn’t seen a drop of rain! Oh well, the kids would be happy. Amanda messaged me shortly after to ask if I would watch her daughter since schools were closed. Amanda had her interview with Urban Airship and was expecting her little one would be in school. I told her to of course bring her over. I wrote some thank you emails to those that interviewed me yesterday. They were all so nice and I just wanted them to know how much I appreciated their time.

I then grabbed a quick breakfast before Amanda’s daughter arrived. She is little so I knew I wouldn’t do much work with her there. I was really looking forward to some small child time and we had a lot of fun. It did eventually snow. Big flakes even! It wasn’t enough to really stick around but it was beautiful. I still can’t believe I live somewhere where it snows.

Amanda finished her interview and came to pick up her daughter. I wanted to hear all about her interview though so she sat and gave me the details. Wayne soon joined us and the three of us talked and talked. He had a fire going, the little one was playing with our animals, the conversation was great, I had hot tea, and I was still in my pajamas! Perfect day!

Amanda and her daughter headed home and I went back to work. The issue was definitely reproducible so I filed the bug. Peter looked at it and wanted the traceback. Doh! I should have known that. I added it in a comment and then started looking at the error.

MultipleObjectsReturned: get() returned more than one Survey — it returned 2!

Well that would definitely be a problem. So with some advice from Andrew I looked at what to use instead of get() and it seemed I would need to use filter() in order to return one or more items. That worked to return the list of surveys but now I would need to loop over the list so more than one survey could be displayed. Once I had that done in the template none of the surveys would show up. Hmmm. No more error though! I was really confused. Andrew looked at it with me and it seemed it would need a ton of JavaScript rewritten. It was way over my head! I pretty much spent several hours going down a rabbit hole only to determine I wasn’t ready to be fixing that particular bug. Oh well, at least I learned something.

Wayne made us dinner while I was in the middle of that mess. We had not-chicken strips, tater tots and brussels sprouts. It was an unhealthy delicious and quick dinner. I researched some JavaScript stuff just to see if there might be another answer that I wasn’t aware of and that went on until bedtime. I didn’t get much further really.

Today I learned that what might first appear to be a very small, easy fix can really be a giant mess.