That very much depends on the Bundesland where that city is located. Good luck doing that in Munich. Personally I got prosecuted for (ordering!) 3g of weed, although later that got folded. Still trouble, though. Also I can still get problems with my driving license for that same amount (even though that alleged possession was in no way connected with driving any vehicle).